|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SocketBinder
Common API for Socket based Transports, which are able
to bind server Socket to specific address and listen for incoming
data.
| Method Summary | |
|---|---|
Connection |
bind(int port)
Binds Transport to the specific port on localhost. |
Connection |
bind(java.net.SocketAddress socketAddress)
Binds Transport to the specific SocketAddress. |
Connection |
bind(java.net.SocketAddress socketAddress,
int backlog)
Binds Transport to the specific SocketAddress. |
Connection |
bind(java.lang.String host,
int port)
Binds Transport to the specific host and port. |
Connection |
bind(java.lang.String host,
int port,
int backlog)
Binds Transport to the specific host and port. |
Connection |
bind(java.lang.String host,
PortRange portRange,
int backlog)
Binds Transport to the specific host, and port within a PortRange. |
void |
unbind(Connection connection)
Unbinds bound Transport connection. |
void |
unbindAll()
Unbinds all bound Transport connections. |
| Method Detail |
|---|
Connection bind(int port)
throws java.io.IOException
port -
Connection
java.io.IOException
Connection bind(java.lang.String host,
int port)
throws java.io.IOException
host - the local host the server will bind toport -
Connection
java.io.IOException
Connection bind(java.lang.String host,
int port,
int backlog)
throws java.io.IOException
host - the local host the server will bind toport - backlog - the maximum length of the queue
Connection
java.io.IOException
Connection bind(java.lang.String host,
PortRange portRange,
int backlog)
throws java.io.IOException
PortRange.
host - the local host the server will bind toportRange - PortRange.backlog - the maximum length of the queue
Connection
java.io.IOException
Connection bind(java.net.SocketAddress socketAddress)
throws java.io.IOException
socketAddress - the local address the server will bind to
Connection
java.io.IOException
Connection bind(java.net.SocketAddress socketAddress,
int backlog)
throws java.io.IOException
socketAddress - the local address the server will bind tobacklog - the maximum length of the queue
Connection
java.io.IOException
void unbind(Connection connection)
throws java.io.IOException
Transport connection.
connection - Connection
java.io.IOException
void unbindAll()
throws java.io.IOException
Transport connections.
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||