Link state notification in Java

Is there a way in Java to receive event notifications when the state of a link on the computer changes (connected, disconnected, up, down, etc.)? Thanks!

+2


a source to share


1 answer


There is no platform independent mechanism that accomplishes this in Java. However, you can use JNI for this. For example, Windows allows you to poll (or receive notifications) about the state of a network interface using the Network Location API (NLA) .



+2


a source







All Articles