Link state notification in Java
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 to share