Winsock error 10054 is "Connection reset by peer", or "An existing connection was forcibly closed by the remote host". The error means exactly what it says - the remote host closed the connection unexpectedly. This happens when a connection is aborted, and there is no tcp disconnection handshake (fin, fin ack, ack) , but instead a rst (reset) flag is sent. A reset flag aborts the connection, and can be sent when: - The device is suddenly stopped, rebooted, or loses its network connection. - The device...