java - How to read from org.jboss.netty.channel? -
i need read directly channel. i'm using netty. in channelhandler, have function:
public void messagereceived(channelhandlercontext ctx, messageevent e) channelbuffer buf = (channelbuffer) e.getmessage(); channel ch = e.getchannel(); //i need read somthing ch, not buf }
you can't read directly channel netty deliver data read channel automatically handler. if want read directly channel may use directly nio.
Comments
Post a Comment