How can the server side detect when the client connection is abnormity broken?

How can the server side detect when the client connection is abnormity broken?
When client's network droped out, How can the server side detect?
I am try it at evet of onsocketerror, but failed, help me please.I am hurry!
thanks!
hujunyiAsked:
Who is Participating?
 
Ivanov_GConnect With a Mentor Commented:

   put something when the client disconnect normally. For example when client disconnect, he send <SESSION_END> string.

   when client is dropped without this string received - this is possible network error / client restart/shutdown...
0
 
HypoviaxConnect With a Mentor Commented:
What about the OnClientDisconnect event? When a client disconnects this procedure will be run

regards, Hypoviax
0
 
HypoviaxCommented:
Both Ivanov_G and myself have provided the procedure to which an event will run when a clent fails i.e disconnects. I therefore think a split of points is appropriate

Hypoviax
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.