Lines Matching defs:timeout
532 * Connects this socket to the server with a specified timeout value.
533 * A timeout of zero is interpreted as an infinite timeout. The connection
537 * @param timeout the timeout value to be used in milliseconds.
539 * @throws SocketTimeoutException if timeout expires before connecting
548 public void connect(SocketAddress endpoint, int timeout) throws IOException {
552 if (timeout < 0)
553 throw new IllegalArgumentException("connect: timeout can't be negative");
579 impl.connect(epoint, timeout);
580 else if (timeout == 0) {
586 throw new UnsupportedOperationException("SocketImpl.connect(addr, timeout)");
968 * The maximum timeout value is platform specific.
1080 * Enable/disable SO_TIMEOUT with the specified timeout, in
1081 * milliseconds. With this option set to a non-zero timeout,
1083 * will block for only this amount of time. If the timeout expires,
1087 * timeout must be > 0.
1088 * A timeout of zero is interpreted as an infinite timeout.
1089 * @param timeout the specified timeout, in milliseconds.
1095 public synchronized void setSoTimeout(int timeout) throws SocketException {
1098 if (timeout < 0)
1099 throw new IllegalArgumentException("timeout can't be negative");
1101 getImpl().setOption(SocketOptions.SO_TIMEOUT, new Integer(timeout));
1106 * option is disabled (i.e., timeout of infinity).
1359 * in a timeout state for a period of time after the connection
1365 * timeout state involving the socket address or port.
1369 * bound even though a previous connection is in a timeout