Generated by
JDiff

Class java.net.ServerSocket

Documentation changed from old to new.

Added Constructors
ServerSocket() Creates an unbound server socket.
 

Changed Constructors
ServerSocket(int, int) Documentation changed from old to new.
Creates a server socket and binds it to the specified local port number with the specified backlog.
ServerSocket(int, int, InetAddress) Documentation changed from old to new.
Create a server with the specified port listen backlog and local IP address to bind to.
 

Added Methods
void bind(SocketAddress) Binds the ServerSocket to a specific address (IP address and port number).
void bind(SocketAddress, int) Binds the ServerSocket to a specific address (IP address and port number).
ServerSocketChannel getChannel() Returns the unique java.nio.channels.ServerSocketChannel object associated with this socket if any.
SocketAddress getLocalSocketAddress() Returns the address of the endpoint this socket is bound to or null if it is not bound yet.
int getReceiveBufferSize() Gets the value of the SO_RCVBUF option for this ServerSocket that is the proposed buffer size that will be used for Sockets accepted from this ServerSocket.
boolean getReuseAddress() Tests if SO_REUSEADDR is enabled.
boolean isBound() Returns the binding state of the ServerSocket.
boolean isClosed() Returns the closed state of the ServerSocket.
void setReceiveBufferSize(int) Sets a default proposed value for the SO_RCVBUF option for sockets accepted from this ServerSocket.
void setReuseAddress(boolean) Enable/disable the SO_REUSEADDR socket option.
 

Changed Methods
Socket accept() Documentation changed from old to new.
Listens for a connection to be made to this socket and accepts it.
void close() Documentation changed from old to new.
Closes this socket.
int getLocalPort() Documentation changed from old to new.
Returns the port on which this socket is listening.
void implAccept(Socket) Documentation changed from old to new.
Subclasses of ServerSocket use this method to override accept() to return their own subclass of socket.
void setSoTimeout(int) Documentation changed from old to new.
Enable/disable SO_TIMEOUT with the specified timeout in milliseconds.