R
Rick
Hi,
I'm trying to connect to a server application listening on a particular
port. Soemtimes what happens is that the server crashes for some reason
and when my client application tries to create a Socket object from the
server's IP and PORT, an exception is thrown: java.net.ConnectException:
Connection refused: connect.
How can I tell that a server is not available before creating a socket?
And how do I cleanly "continue" from the point where the exception is
being thrown? Thanks!
-Rick
I'm trying to connect to a server application listening on a particular
port. Soemtimes what happens is that the server crashes for some reason
and when my client application tries to create a Socket object from the
server's IP and PORT, an exception is thrown: java.net.ConnectException:
Connection refused: connect.
How can I tell that a server is not available before creating a socket?
And how do I cleanly "continue" from the point where the exception is
being thrown? Thanks!
-Rick