Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class ListenToPackets extends ChannelInboundHandlerAdapter {
- @Override
- public void channelRead(ChannelHandlerContext ctx, Object msg)
- throws Exception {
- System.out.println("GOT: " + msg);
- super.channelRead(ctx, msg);
- }
- @Override
- public void channelReadComplete(ChannelHandlerContext ctx) throws Exception {
- //System.out.println("GOT (DONE)");
- super.channelReadComplete(ctx);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement