# netty-personal-protocol **Repository Path**: zoujiedev/netty-personal-protocol ## Basic Information - **Project Name**: netty-personal-protocol - **Description**: 基于Netty 的个人协议 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 1 - **Created**: 2022-11-03 - **Last Updated**: 2024-08-09 ## Categories & Tags **Categories**: Uncategorized **Tags**: Netty, Netty权威指南, Java, 私有网络协议 ## README # netty-personal-protocol #### 介绍 基于Netty 的个人协议实现,参考与Netty权威指南,虽然基于Netty权威指南,但是其中有许多自己的改动。 * 序列化使用Hessian2 * NettyMessageDecoder 中设置lengthAdjustment值,否则无法正常解析消息。 我猜测应该是LengthFieldBasedFrameDecoder默认认为长度域的长度没有计算到lengthField中,因此需要lengthAdjustment调整真实的消息长度 * [reference-counted-objects](https://netty.io/wiki/reference-counted-objects.html) Decoder release the byte buffer #### 使用说明 1. 主要实现为core模块 2. 例子为demo模块