@ Override public void channelActive ( final ChannelHandlerContext ctx ) throws Exception { ByteBuf request = ctx . alloc ( ) . buffer ( ) ; VersionRequest . init ( request ) ; ctx . writeAndFlush ( request ) ; }
Once the channel becomes active sends the initial open connection request .