When a client connects to the game server several messages are sent back and fouth between the client and server in order to establish a connection (like a sequence of verify bytes, version information, login details).
Say if though, the versions between the client/server are different and the error of "Different client/server version." displays on the game client. How would I cancel/close the sockets which I have created in a correct manner. Right now I am just closing the socket (.net's TcpClient) on both the server and the client. But the thing is once the TcpClient is closed on one end it also closes automatically on the other end (due to the transmission control protocol id issume, or winsock).
Question: How would I close these sockets correctly on both ends?
I hope you understand what I am saying,
All replies are appriciated.
Edited by Xanather, 13 October 2012 - 08:24 AM.