?
Solved

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

Posted on 2004-04-28
6
Medium Priority
?
170 Views
Last Modified: 2010-04-05
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!
0
Comment
Question by:hujunyi
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
6 Comments
 
LVL 12

Accepted Solution

by:
Ivanov_G earned 100 total points
ID: 10946629

   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
 
LVL 5

Assisted Solution

by:Hypoviax
Hypoviax earned 100 total points
ID: 10955298
What about the OnClientDisconnect event? When a client disconnects this procedure will be run

regards, Hypoviax
0
 
LVL 5

Expert Comment

by:Hypoviax
ID: 13189988
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

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

719 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question