Closeable
, AutoCloseable
SSLServerSocket
Constructors
Creates an unbound server socket.
Creates a server socket, bound to the specified port.
Creates a server socket and binds it to the specified local port number, with the specified backlog.
Create a server with the specified port, listen backlog, and local IP address to bind to.
protected
Creates a server socket with a user-specified SocketImpl
.
Listens for a connection to be made to this socket and accepts it.
void
Binds the ServerSocket
to a specific address (IP address and port number).
void
Binds the ServerSocket
to a specific address (IP address and port number).
void
Returns the local address of this server socket.
int
Returns the port number on which this socket is listening.
Returns the address of the endpoint this socket is bound to.
<T> T
Returns the value of a socket option.
int
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
int
Retrieve setting for
SO_TIMEOUT
. 0 returns implies that the option is disabled (i.e., timeout of infinity).
protected final void
Subclasses of ServerSocket use this method to override accept() to return their own subclass of socket.
boolean
Returns the binding state of the ServerSocket.
boolean
Returns the closed state of the ServerSocket.
Sets the value of a socket option.
void
Sets performance preferences for this ServerSocket.
void
Sets a default proposed value for the
SO_RCVBUF
option for sockets accepted from this
ServerSocket
.
void
static void
void
Enable/disable
SO_TIMEOUT
with the specified timeout, in milliseconds.
Returns a set of the socket options supported by this server socket.
Returns the implementation address and implementation port of this socket as a String
.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4