- 所有已实现的接口:
- io.netty.channel.ChannelHandler, io.netty.channel.ChannelInboundHandler, io.netty.channel.ChannelOutboundHandler
public class MessageCodecHandler
extends io.netty.handler.codec.ByteToMessageCodec<RpcMessage>
The type Message codec handler.
RpcMessage protocol
0 1 2 3 4 6 8 10 12 14 16
+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
| 0xdada | flag | typecode/ | requestid | |
| | | bodylength| | |
+-----------+-----------+-----------+-----------+-----------+-----------+-----------+ +
| ... ... |
+ +
| body |
+ +
| ... ... |
+-----------------------------------------------------------------------------------------------+
- 作者:
- jimin.jm @alibaba-inc.com