Results 1 to 5 of 5
- 09-13-2010, 04:29 PM #1
Senior Member
- Join Date
- Jan 2010
- Posts
- 138
- Rep Power
- 0
- 09-13-2010, 04:53 PM #2
You could run a timer that checks Socket.isConnected(), and if it returns false, then retry the connection.
- 09-13-2010, 05:18 PM #3
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 14,422
- Blog Entries
- 7
- Rep Power
- 29
That is all possible but imagine the server keeps a lot of state. When the server notices a lost connection it might free its resources (state). Simply establishing a new connection won't do it then. I am wondering why the connection might be 'unexpectedly' get lost. Bad cables? That'd be a job for an electrician ...
kind regards,
Jos
- 09-13-2010, 05:28 PM #4
Senior Member
- Join Date
- Jan 2010
- Posts
- 138
- Rep Power
- 0
well, my application does not run on LAN, but it will run on WAN, so I am just concerning when the WAN connection down.. then the client socket should know then they should keep trying to reconnect to the server
any idea or comment?
- 09-13-2010, 05:42 PM #5
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 14,422
- Blog Entries
- 7
- Rep Power
- 29
Similar Threads
-
events on a server socket
By newbiejava in forum New To JavaReplies: 13Last Post: 08-03-2010, 09:24 AM -
design & generics for socket server
By gilme in forum New To JavaReplies: 1Last Post: 06-18-2010, 05:24 AM -
Server Socket
By Moncleared in forum New To JavaReplies: 1Last Post: 09-05-2009, 07:08 AM -
(Server)Socket application deploying
By mdinant in forum NetworkingReplies: 0Last Post: 04-09-2008, 06:10 PM
Bookmarks