public synchronized int getSoTimeout () throws SocketException

Returns setting for SO_TIMEOUT. 0 returns implies that the option is disabled (i.e., timeout of infinity).

Returns:  the setting for SO_TIMEOUT

Exceptions:
SocketException    if there is an error in the underlying protocol, such as a TCP error.

See also:
setSoTimeout(int)

Since:  JDK1.1