|
Generated by JDiff |
||||||||
PREV CLASS NEXT CLASS FRAMES NO FRAMES | DETAIL: CONSTRUCTORS | METHODS | FIELDS |
Added Constructors | |
|
Creates an unbound server socket. |
Changed Constructors | ||
int, |
Documentation changed from old to new. |
Creates a server socket and binds it to the specified local port number with the specified backlog. |
int, |
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, |
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. |
|
|||||||||
PREV CLASS NEXT CLASS FRAMES NO FRAMES |