我需要直接从频道读取。我正在使用网络。在我的 ChannelHandler 中,我有这个功能:
public void messageReceived(ChannelHandlerContext ctx, MessageEvent e)
ChannelBuffer buf = (ChannelBuffer) e.getMessage();
Channel ch = e.getChannel();
//I need to read somthing from ch, not from buf
}