|
XNIO API 2.0.2.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(java.net.InetSocketAddress dest,
ChannelListener<? super TcpChannel> openListener,
ChannelListener<? super BoundChannel<java.net.InetSocketAddress>> bindListener)
Establish a connection to a TCP server. |
TcpChannelSource |
createChannelSource(java.net.InetSocketAddress dest)
Create a client that always connects to the given TCP server. |
| Method Detail |
|---|
IoFuture<TcpChannel> connectTo(java.net.InetSocketAddress dest,
ChannelListener<? super TcpChannel> openListener,
ChannelListener<? super BoundChannel<java.net.InetSocketAddress>> bindListener)
connectTo in interface Connector<java.net.InetSocketAddress,TcpChannel>dest - the destination addressopenListener - the handler which will be notified when the channel is open, or null for nonebindListener - the handler which will be notified when the channel is bound, or null for none
TcpChannelSource createChannelSource(java.net.InetSocketAddress dest)
createChannelSource in interface Connector<java.net.InetSocketAddress,TcpChannel>dest - the destination to connect to
|
XNIO API 2.0.2.GA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||