Java checking connection via socket continuously
Posted
by
Onca
on Stack Overflow
See other posts from Stack Overflow
or by Onca
Published on 2012-09-01T23:55:47Z
Indexed on
2012/09/02
3:38 UTC
Read the original article
Hit count: 104
I'm developing a multiclient-server program with Java based on GUI and database. The demand regarding the program from the client side is to make sure all the time that there is a connection to the server, and if the connection is lost (server goes down/problem with socket or stream) it should be notified.
In other words I need a solution for continuously checking the connection to the server.
What is the best way to do that ?
© Stack Overflow or respective owner