|
XNIO version 1.2.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 | |
---|---|
FutureConnection<SocketAddress,TcpChannel> |
connectTo(SocketAddress dest,
IoHandler<? super TcpChannel> handler)
Establish a connection to a TCP server. |
FutureConnection<SocketAddress,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 server from the given source address. |
Method Detail |
---|
FutureConnection<SocketAddress,TcpChannel> connectTo(SocketAddress dest, IoHandler<? super TcpChannel> handler)
connectTo
in interface Connector<SocketAddress,TcpChannel>
dest
- the destination addresshandler
- the handler for this connection
FutureConnection<SocketAddress,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.2.1.GA | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |