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

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -