|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface TcpConnector
A connector specifically for connecting to TCP servers.
| Method Summary | |
|---|---|
FutureConnection<java.net.SocketAddress,TcpChannel> |
connectTo(java.net.SocketAddress dest,
IoHandler<? super TcpChannel> handler)
Establish a connection to a TCP server. |
FutureConnection<java.net.SocketAddress,TcpChannel> |
connectTo(java.net.SocketAddress src,
java.net.SocketAddress dest,
IoHandler<? super TcpChannel> handler)
Establish a connection to a TCP server. |
TcpChannelSource |
createChannelSource(java.net.SocketAddress dest)
Create a client that always connects to the given TCP server. |
TcpChannelSource |
createChannelSource(java.net.SocketAddress src,
java.net.SocketAddress dest)
Create a client that always connects to the given TCP server from the given source address. |
| Method Detail |
|---|
FutureConnection<java.net.SocketAddress,TcpChannel> connectTo(java.net.SocketAddress dest,
IoHandler<? super TcpChannel> handler)
connectTo in interface Connector<java.net.SocketAddress,TcpChannel>dest - the destination addresshandler - the handler for this connection
FutureConnection<java.net.SocketAddress,TcpChannel> connectTo(java.net.SocketAddress src,
java.net.SocketAddress dest,
IoHandler<? super TcpChannel> handler)
connectTo in interface Connector<java.net.SocketAddress,TcpChannel>src - the source addressdest - the destination addresshandler - the handler for this connection
TcpChannelSource createChannelSource(java.net.SocketAddress dest)
createChannelSource in interface Connector<java.net.SocketAddress,TcpChannel>dest - the destination to connect to
TcpChannelSource createChannelSource(java.net.SocketAddress src,
java.net.SocketAddress dest)
createChannelSource in interface Connector<java.net.SocketAddress,TcpChannel>src - the source to connect fromdest - the destination to connect to
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||