Java Code Examples for io.netty.channel.ChannelHandlerContext.connect()

The following are Jave code examples for showing how to use connect() of the io.netty.channel.ChannelHandlerContext class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: aws-sdk-java-v2   File: LoggingHandler.java   Source Code and License Vote up 4 votes
@Override
public void connect(ChannelHandlerContext ctx, SocketAddress remote, SocketAddress local, ChannelPromise promise) {
    log(() -> format(ctx, "CONNECT", remote, local));
    ctx.connect(remote, local, promise);
}
 
Example 2
Project: CustomWorldGen   File: NetworkDispatcher.java   Source Code and License Vote up 4 votes
@Override
public void connect(ChannelHandlerContext ctx, SocketAddress remoteAddress, SocketAddress localAddress, ChannelPromise promise) throws Exception
{
    ctx.connect(remoteAddress, localAddress, promise);
}