A server socket waits for requests to come in over the network.
Constructor
Creates a new server socket to given port
binding it to optional addr with given backlog for incoming connections
Methods
Listens for a connection to be made to this socket and accepts it.
The method blocks until a connection is made.
| Throws |
InterruptedIO -
If operation was interrupted
IOError -
If an IO error occurs
|
Closes this socket.
| Throws |
IOError -
If an IO error occurs
|
| Returns |
the IP address to which this socket has been bound to. |
| Returns |
the port to which this socket has been bound to. |
| Returns |
setting for SO_TIMEOUT. 0 returns implies that the option is
disabled (i.e., timeout of infinity). |
| Throws |
IOError -
If an IO error occurs
|
Enable/disable SO_TIMEOUT with the specified timeout, in milliseconds.
| Throws |
IOError -
If an IO error occurs
|