I have an application running on my desktop which uses TCP sockets to establish connection with another card reader . a rough description of how the devices are connected is as shown below
Desktop - (hosting the application) connected to an external connector | card reader also connected to the same connector Each time application wants to connect to the card reader it establishes a TCP/IP socket connection and sends data to a particular port.
how can a utility in c#,be written which keeps track of the card reader and intimates my application as soon the card reader is disconnected or out of network