Results 1 to 5 of 5
- 09-13-2010, 03:29 PM #1
Senior Member
- Join Date
- Jan 2010
- Posts
- 138
- Rep Power
- 0
- 09-13-2010, 03:53 PM #2
You could run a timer that checks Socket.isConnected(), and if it returns false, then retry the connection.
- 09-13-2010, 04:18 PM #3
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,606
- Blog Entries
- 7
- Rep Power
- 17
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, 04: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, 04:42 PM #5
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,606
- Blog Entries
- 7
- Rep Power
- 17
Similar Threads
-
events on a server socket
By newbiejava in forum New To JavaReplies: 13Last Post: 08-03-2010, 08:24 AM -
design & generics for socket server
By gilme in forum New To JavaReplies: 1Last Post: 06-18-2010, 04:24 AM -
Server Socket
By Moncleared in forum New To JavaReplies: 1Last Post: 09-05-2009, 06:08 AM -
(Server)Socket application deploying
By mdinant in forum NetworkingReplies: 0Last Post: 04-09-2008, 05:10 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks