X
xincmu
I built a very basic server-client in C#. When my server disconnects
from the client, the socket at the server is already disconnected, but
the socket the client remains open. I used the sample code in .Net's
documentation to disconnect:
socket.Shutdown( SocketShutdown.Both );
socket.Disconnect( false );
I also tried
socket.Close() instead of Disconnect.
I compiled my code with MS Studio 2005. When I used to compile it
with MS Studio 2003, it worked just fine.
Anybody had the same problem? Thanks.
from the client, the socket at the server is already disconnected, but
the socket the client remains open. I used the sample code in .Net's
documentation to disconnect:
socket.Shutdown( SocketShutdown.Both );
socket.Disconnect( false );
I also tried
socket.Close() instead of Disconnect.
I compiled my code with MS Studio 2005. When I used to compile it
with MS Studio 2003, it worked just fine.
Anybody had the same problem? Thanks.