c. wait, c++. Java has its limits. I don't know any way of limiting the
ammount of time spent waiting for a socket to connect (server sockets yes,
but any old socket, hm). I would be interested in hearing how to do this
too, as I have been trying to find a way for a while now.

On Wed, 12 Aug 1998, Per Widerlund wrote:

> Hello all..
> 
> Consider the following scenario:
> You want to connect to a remote server that may
> or may not be up and running (or even reachable).
> You want to be able to specify the exact amount
> of time before the connection attempt times out.
> You are not allowed to use any of the soon-to-be-
> deprecated (JDK1.2) methods in the Thread class.
> 
> Solution?
> 
> /Per Widerlund
> 

Reply via email to