Let me take Negotiate200.h generated by real-logic tool as an example. A valid Negotiate200 message to CME should be Packet Header + MDP message as inidicated in the below link.
https://www.cmegroup.com/confluence/download/attachments/170262771/ConflatedTCPPacketStructure.png?version=2&modificationDate=1617896706155&api=v2
My code will provide Packet Header. Seems wrapAndApplyHeader() will fill Simple Binary Header part. Who will provide Message Size? Of course I can call sbeBlockAndHeaderLength() to fill it. Is there any better way?
BTW, when to call wrapForEncode()?
CME’s packet header is not specified by the SBE standard.
Since your question is specific to the Real Logic implementation of SBE rather than the FIX standard, it would be best to address this question to the Real Logic project and/or CME technical support.
Sure. I will post to real-logic. However I am interested in Message Size part. Not packet header