|
XNIO version 1.1.1.GA | ||||||||
| 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 | |
|---|---|
IoFuture<TcpChannel> |
connectTo(SocketAddress dest,
IoHandler<? super TcpChannel> handler)
Establish a connection to a TCP server. |
IoFuture<TcpChannel> |
connectTo(SocketAddress src,
SocketAddress dest,
IoHandler<? super TcpChannel> handler)
Establish a connection to a TCP server. |
TcpChannelSource |
createChannelSource(SocketAddress dest)
Create a client that always connects to the given TCP server. |
TcpChannelSource |
createChannelSource(SocketAddress src,
SocketAddress dest)
Create a client that always connects to the given TCP from the given source address. |
| Method Detail |
|---|
IoFuture<TcpChannel> connectTo(SocketAddress dest,
IoHandler<? super TcpChannel> handler)
connectTo in interface Connector<SocketAddress,TcpChannel>dest - the destination addresshandler - the handler for this connection
IoFuture<TcpChannel> connectTo(SocketAddress src,
SocketAddress dest,
IoHandler<? super TcpChannel> handler)
connectTo in interface Connector<SocketAddress,TcpChannel>src - the source addressdest - the destination addresshandler - the handler for this connection
TcpChannelSource createChannelSource(SocketAddress dest)
createChannelSource in interface Connector<SocketAddress,TcpChannel>dest - the destination to connect to
TcpChannelSource createChannelSource(SocketAddress src,
SocketAddress dest)
createChannelSource in interface Connector<SocketAddress,TcpChannel>src - the source to connect fromdest - the destination to connect to
|
XNIO version 1.1.1.GA | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||