I am studying asynchronous C # Sockets at the moment, and I noticed something that I am confused about.
In all End ... (Accept / Connect), etc. There is a section of code, for example:
Socket s = (Socket) ar.AsyncState;
Here it starts as a socket.
How each End uses these local sockets, is there any point in trying to execute close()any of them after completion?
What is the best practice?
iTEgg source
share