wood burning stoves 2.0*
The moose likes Sockets and Internet Protocols and the fly likes DETECT if  a CLIENT still exits Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "DETECT if  a CLIENT still exits" Watch "DETECT if  a CLIENT still exits" New topic
Author

DETECT if a CLIENT still exits

Zaafir Barahim
Ranch Hand

Joined: Dec 12, 2006
Posts: 36
hi, i have a server that periodically wait for clients to send files and there are many clients that just send text file to the server. Now i want to write a code that enable the server to know if a client still exits as each clients send a file at a specific interval of time and if one client has not send any file for example in 2minutes then the server must know that the client is down and do the action that i want when a client is down.PLEASE i NEED HELP to write the code to do this. HELP ME!!!.Thanks in advance.
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8836
    
    7

This is commonly called a "heartbeat". You code your client and server to exchange a message at regular intervals and if one does not receive the message at the expected time some action is taken. Why don't you take a swing at it and we'll help you along if you have problems?


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: DETECT if a CLIENT still exits
 
Similar Threads
FBN: Closing the database in Network mode.
how to download files from a remote server via java code?
RMI help needed
sending a file to a client over a server
Servlet server communication problems