2
Reply

client disconnect method in sockets

chikki manthri

chikki manthri

Apr 9 2008 5:47 AM
2.4k

i have written a server program in c# (sockets) to read a client  using asynchronous method. but i'am unable to know when the client is disconnected.

      one method is to see if number of bytes received are zero then the client is disconnected,but as my program is asynchronous i'am unable poll the client's status.


Answers (2)