@Override public void channelConnected(ChannelHandlerContext ctx, ChannelStateEvent event) { // register the newly established channel Channel channel = ctx.getChannel(); client.channelConnected(channel); LOG.info( "Connection established from {} to {}", channel.getLocalAddress(), channel.getRemoteAddress()); }