public TcpChannelSource createChannelSource(final SocketAddress dest) {
if (dest == null) {
throw new NullPointerException("dest is null");
}
return new TcpChannelSource() {
public FutureConnection<SocketAddress, TcpChannel> open(final IoHandler<? super TcpChannel> handler) {
if (handler == null) {
throw new NullPointerException("handler is null");
}
return doConnectTo(null, dest, handler);