April 05
Prof. Ismael H. F. Santos -  ismael@tecgraf.puc-rio.br                                                          2
ServerSocket & Exceptions
npublic ServerSocket(int port) throws IOException 
nCreates a server socket on a specified port.
nA port of 0 creates a socket on any free port. You can use getLocalPort() to identify the (assigned) port on which this socket is listening.
nThe maximum queue length for incoming connection indications (a request to connect) is set to 50. If a connection indication arrives when the queue is full, the connection is refused.
nThrows:
nIOException - if an I/O error occurs when opening the socket.
nSecurityException - if a security manager exists and its checkListen method doesn't allow the operation.
n