accept() | Listens for a connection to be made to this socket and accepts it. |
bind(SocketAddress endpoint) | Binds the ServerSocket to a specific address (IP address and port number). |
bind(SocketAddress endpoint, int backlog) | Binds the ServerSocket to a specific address (IP address and port number) and requests queqe length. If a request arrives when the queue is full then the request will be rejected by the server. |
close() | Closes this socket |
getChannel() | Returns the unique ServerSocketChannel object associated with this socket, if any. |
getInetAddress() | Returns the local address of this server socket. |
getLocalPort() | Returns the port number on which this socket is listening. |
getLocalSocketAddress() | Returns the address of the endpoint this socket is bound to, or null if it is not bound yet. |
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. |
getReuseAddress() | Tests if SO_REUSEADDR is enabled. |
getSoTimeout() | Retrieve setting for SO_TIMEOUT. |
implAccept(Socket s) | Subclasses of ServerSocket use this method to override accept() to return their own subclass of the socket. |
isBound() | Returns the binding state of the ServerSocket. |
isClosed() | Returns the closed state of the ServerSocket. |
setPerformancePreferences(int connectionTime, int latency, int bandwidth) | Sets performance preferences for this ServerSocket |
Sets performance preferences for this ServerSocket | Sets a default proposed value for the SO_RCVBUF option for sockets accepted from this ServerSocket. |
setReuseAddress(boolean on) | Enable/disable the SO_REUSEADDR socket option. |
setSocketFactory(SocketImplFactory fac) | Sets the server socket implementation factory for the application. |
setSoTimeout(int timeout) | Enable/disable SO_TIMEOUT with the specified timeout, in milliseconds. |
toString() | Returns the implementation address and implementation port of this socket as a String. |