Netty separator and decoder

Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
This link: https://blog.csdn.net/wenqiangluyao/article/details/98946786

netty separator and the fixed-length channel decoder solution
Netty delimiter decoding
LengthFieldBasedFrameDecoder understand seconds

Note:

  1. Transmitting byte[]data by Unpooled.copiedBuffer()the byte [] into the package ByteBuf, and then sent
  2. If the data is not received before a connection or a two receive data, the frame decoder is likely to be (. FrameDecoder) is provided with a problem.
  3. Separator The separator to the decoder as a terminator of data to determine, as a starting symbol is determined if you want two receive data before a need to look

Guess you like

Origin blog.csdn.net/wenqiangluyao/article/details/98946786