netty

实际项目中,通常将LengthFieldBasedFrameDecoder和ByteToMessageDecoder组合使用,前者负责将网络读取的数据报解码为整包消息,后者负责将整包消息解码为最终的业务对象。

引用

http://www.infoq.com/cn/articles/netty-codec-framework-analyse/

原文地址:https://www.cnblogs.com/jiftle/p/7266380.html