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.