How the application that the network state, such as the network cable is not plu

Both windows and Linux are displayed in the status bar to the network status icon, it can reflect the state of the network.
And in the application how to check the network status and make the treatment after error?
For example, I unplug the network cable or router and network suddenly lost connection or server crashes, how will my application detection and subsequent treatment?
If each network application to check the network state, is it right? Feeling that people were doing the same thing?

Started by Lydia at November 09, 2016 - 10:05 PM

1, Simulation of ARP packets to determine link is it right? Good
2, Command, IP link can see the status

Posted by Oswald at November 18, 2016 - 10:31 PM

Thank you, that your application requires to determine the link is it right? Good, then back to my third question.:
If each network application to check the network state, is it right? Feeling that people were doing the same thing?

Posted by Lydia at November 26, 2016 - 11:12 PM

Operating system is to obtain the hardware message, this message is the only, the back message will be distributed to different network drive, and filter driver, if you do safety protection, here can monitor.

Then the system can get the message, then detect these will display the network disconnection etc.

Application layer are based on their own initiative to detection, is belatedly.

Posted by Armand at November 28, 2016 - 12:04 AM

Yes. General applications are using timeouts or heartbeat judge the network state

Posted by Derrick at December 06, 2016 - 12:52 AM