Advertisement
Guest User

Untitled

a guest
Jan 17th, 2016
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. public class ListenToPackets extends ChannelInboundHandlerAdapter {
  2.  
  3. @Override
  4. public void channelRead(ChannelHandlerContext ctx, Object msg)
  5. throws Exception {
  6. System.out.println("GOT: " + msg);
  7. super.channelRead(ctx, msg);
  8. }
  9. @Override
  10. public void channelReadComplete(ChannelHandlerContext ctx) throws Exception {
  11. //System.out.println("GOT (DONE)");
  12. super.channelReadComplete(ctx);
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement