J
James Yang
Hi,
I am using Sockets to connect to a remote computer and send data using
Socket.Send() and receive using Socket.Receive() (block mode) . for
somereason tho, when the client disconnects the Socket.Receive() just passes
without any exception. Is there any way to detect disconnection using
Sockets?
I believe I saw a way of doing this using IAsyncResult, and eventhandling
but..no article really explained how to use it properly.
BTW. Socket.Connected returns true even tho it was disconnected
thank you in advance
- James
I am using Sockets to connect to a remote computer and send data using
Socket.Send() and receive using Socket.Receive() (block mode) . for
somereason tho, when the client disconnects the Socket.Receive() just passes
without any exception. Is there any way to detect disconnection using
Sockets?
I believe I saw a way of doing this using IAsyncResult, and eventhandling
but..no article really explained how to use it properly.
BTW. Socket.Connected returns true even tho it was disconnected
thank you in advance
- James