Exemplo n.º 1
0
 @Override
 public void channelUnregistered(final ChannelHandlerContext ctx) {
   Flog.log("Disconnected from %s", ctx.channel().remoteAddress());
   reconnect();
 }
Exemplo n.º 2
0
 @Override
 public void channelActive(ChannelHandlerContext ctx) throws Exception {
   Flog.log("Connected to %s", ctx.channel().remoteAddress());
   handler.on_connect();
 }