Netty 奈蒂:什么时候到?

Netty 奈蒂:什么时候到?,netty,Netty,在书的第2章“Netty In Action”中,重复了一个例子 服务器端我得到: Server received: SimpleLeakAwareByteBuf(UnpooledUnsafeDirectByteBuf(ridx: 0, widx: 12, cap: 1024)) 但是客户端是可以的 Client received: 4e6574747920726f636b7321. 有人能解释一下为什么会出现simplelakawarebytebuf而不是4e6574747792072

在书的第2章“Netty In Action”中,重复了一个例子

服务器端我得到:

Server received: SimpleLeakAwareByteBuf(UnpooledUnsafeDirectByteBuf(ridx: 0, widx: 12, cap: 1024)) 
但是客户端是可以的

Client received: 4e6574747920726f636b7321. 
有人能解释一下为什么会出现
simplelakawarebytebuf
而不是
4e65747477920726f636b7321

这个信息实际上意味着什么


谢谢。

你找到这个问题的答案了吗?后来我决定不使用Netty。相反,我使用了Java7NIO2异步SocketChannel为什么拒绝netty?什么原因?Netty缺乏资源。相反,核心Java比第三方解决方案可靠得多。