public interface SocketBinder<E>
Socket based Transports, which are able
to bind server Socket to specific address and listen for incoming
data.| Modifier and Type | Method and Description |
|---|---|
E |
bind(int port)
Binds Transport to the specific port on localhost.
|
E |
bind(SocketAddress socketAddress)
Binds Transport to the specific SocketAddress.
|
E |
bind(SocketAddress socketAddress,
int backlog)
Binds Transport to the specific SocketAddress.
|
E |
bind(String host,
int port)
Binds Transport to the specific host and port.
|
E |
bind(String host,
int port,
int backlog)
Binds Transport to the specific host and port.
|
E |
bind(String host,
PortRange portRange,
int backlog)
Binds Transport to the specific host, and port within a
PortRange. |
E |
bindToInherited()
Binds the Transport to the channel inherited from the entity that
created this Java virtual machine.
|
void |
unbind(E connection)
Unbinds bound
Transport connection. |
void |
unbindAll()
Unbinds all bound
Transport connections. |
E bind(int port) throws IOException
port - ConnectionIOExceptionE bind(String host, int port) throws IOException
host - the local host the server will bind toport - ConnectionIOExceptionE bind(String host, int port, int backlog) throws IOException
host - the local host the server will bind toport - backlog - the maximum length of the queueConnectionIOExceptionE bind(String host, PortRange portRange, int backlog) throws IOException
PortRange.host - the local host the server will bind toportRange - PortRange.backlog - the maximum length of the queueConnectionIOExceptionE bind(SocketAddress socketAddress) throws IOException
socketAddress - the local address the server will bind toConnectionIOExceptionE bind(SocketAddress socketAddress, int backlog) throws IOException
socketAddress - the local address the server will bind tobacklog - the maximum length of the queueConnectionIOExceptionE bindToInherited() throws IOException
ConnectionIOExceptionvoid unbind(E connection) throws IOException
Transport connection.connection - ConnectionIOExceptionvoid unbindAll()
throws IOException
Transport connections.IOExceptionCopyright © 2013 Oracle Corporation. All Rights Reserved.