Enable/disable SO_TIMEOUT with the specified timeout, in milliseconds.
With this option set to a non-zero timeout, a read() call on the
InputStream associated with this Socket will block for only this
amount of time. If the timeout expires, a read operation is
interrupted , though the Socket is still valid.
The option must be enabled prior to
entering the blocking operation to have effect.
The timeout must be > 0. A timeout of zero
is interpreted as an infinite timeout.
| Throws |
SocketError -
If an error occured
|