We want to use a constant header format for all messages (both handshake and session), to both ease parsing and allow for long-message framing.
This means the header should include the total-packet-length in a static location (to ease parsing), even for handshake messages whose structure and length are known.
It should also include framing info (e.g. frame number, total frame count). Cf. the (D)TLS specs for inspiration.
We want to use a constant header format for all messages (both handshake and session), to both ease parsing and allow for long-message framing.
This means the header should include the total-packet-length in a static location (to ease parsing), even for handshake messages whose structure and length are known.
It should also include framing info (e.g. frame number, total frame count). Cf. the (D)TLS specs for inspiration.