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