@Override
    public void onConnected() throws IOException {
        if (mSocketChannel.finishConnect()) {
            super.onConnected();
        } else {
            throw new IOException("[TCP]The tunnel socket is not connected.");
        }
    }
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