@Override
    public void connect(InetSocketAddress address) throws IOException {
        NetBareLog.i("TCP connects to: %s:%s",
                address.getAddress().getHostAddress(), address.getPort());
        if (mSocketChannel.isBlocking()) {
            mSocketChannel.configureBlocking(false);
        }
        mSocketChannel.register(mSelector, SelectionKey.OP_CONNECT, this);
        mSocketChannel.connect(address);
    }
A TCP protocol implementation based with {@link NioTunnel}.

@author Megatron King
@since 2018-11-21 00:36
netbare-core/src/main/java/com/github/megatronking/netbare/tunnel/TcpTunnel.java