2
Answers

client disconnect method in sockets

chikki manthri

chikki manthri

16y
2.4k
1

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)