LengthFieldBasedFrameDecoder

hezjing hezjing at gmail.com
Thu Sep 10 09:23:49 EDT 2009


Hi
I have a message containing a fixed length header of 20 bytes, followed by a
payload of variable length.
The header contains a 2 bytes length field, indicating the length of the
payload (excluding the header).

For example if the message has 10 bytes payload, then the entire frame
length is 30 bytes (20 bytes header + 10 bytes of payload),
and the length field is 10.

May I know what is the parameter to create LengthFieldBasedFrameDecoder?


Thank you!


-- 

Hez
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/netty-users/attachments/20090910/0c1f4f5e/attachment.html 


More information about the netty-users mailing list