Netprog 2002 - Client/Server Issues
47
SO_TIMEOUT
lCan be used to tell the socket to use non-blocking read.
lgetSoTimeout() returns the current setting (by default 0, or disabled, representing a blocking read).
lE.g. to tell socket to interrupt reading if 5 seconds pass by, use:
– mySocket.setSoTimeout(5000);
l