Check if server closed connection (Sockets, TCP)

This post was flagged by the community and is temporarily hidden.