codemechanic
Programmer
I am using the system.net.socket class sockets to setup events and callbacks to monitor client connection status in a Time server. The socket class supports the following methods which I have used to setup onconnect and onreceivedata events:
1.sock.BeginAccept, 2.sock.BeginRecieve
The problem that I face is since there is no method that I can use to couple a "client close connection" event, how do I set up a server side event"onDisconnect" that gets fired when the client closes the connection? I need this to update the clients connection status. Is there anyway i can achieve this using the system.Net.socket class sockets or any other C# socket?
1.sock.BeginAccept, 2.sock.BeginRecieve
The problem that I face is since there is no method that I can use to couple a "client close connection" event, how do I set up a server side event"onDisconnect" that gets fired when the client closes the connection? I need this to update the clients connection status. Is there anyway i can achieve this using the system.Net.socket class sockets or any other C# socket?