By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,187 Members | 1,070 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,187 IT Pros & Developers. It's quick & easy.

Client Socket Shutdown is not visible on the Server Socket

P: n/a
I have two apps. Client and Server (both are windows console apps).

Im using Client Socket of this definition AddressFamily.InterNetwork,
SocketType.Stream, ProtocolType.Tcp
and Im using async communication with the Server Socket.
I have no opened NetworkStream.

In case, I kill my client application (via red cross) the server application
can see, that client has been disconnected.
In case, I shutdown the client socket and close it on the client side, and
then close my client apps, the server cannot see, that the client
application has been disconnected.
WHY???

Thanks
ME

Nov 5 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On 2007-11-05 00:22:52 -0800, "Miroslav Endys" <ne**@endys.czsaid:
[...]
In case, I kill my client application (via red cross) the server
application can see, that client has been disconnected.
In case, I shutdown the client socket and close it on the client side,
and then close my client apps, the server cannot see, that the client
application has been disconnected.
WHY???
Are you actually calling Socket.Shutdown()?

It's not really possibly to answer your question without seeing the
code you wrote. For specific advice, you should post a
concise-but-complete sample of code that reliably demonstrates the
problem.

"Concise" means you only include the minimum code required, and
"complete" means you post enough code to compile and run without any
addition effort on someone else's part.

Pete

Nov 5 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.