Hi<div><br></div><div>I have a message containing a fixed length header of 20 bytes, followed by a payload of variable length.</div><div>The header contains a 2 bytes length field, indicating the length of the payload (excluding the header).</div>
<div><br></div><div>For example if the message has 10 bytes payload, then the entire frame length is 30 bytes (20 bytes header + 10 bytes of payload),</div><div>and the length field is 10.</div><div><br></div><div>May I know what is the parameter to create <span class="Apple-style-span" style="border-collapse: collapse; white-space: pre; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; ">LengthFieldBasedFrameDecoder?</span></div>
<div><span class="Apple-style-span" style="border-collapse: collapse; white-space: pre; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;"><br></span></div><div><span class="Apple-style-span" style="border-collapse: collapse; white-space: pre; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;"><br>
</span></div><div><span class="Apple-style-span" style="border-collapse: collapse; white-space: pre; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;">Thank you!</span></div><div><br clear="all">
<br>-- <br><br>Hez<br>
</div>