Imported from previous forum
Hello,
I am writing a new Fix Engine from scratch for our comapny and I wanted to confirm something.
The Body length is calculated from the tag after body length 9=d(delim) to the end without the check sum tag.
The Check sum is calculated by feeding the entire buffer (FIX.4.1 - end delim without the 10= ) and giving it the body length and it will return a char value of three.
I just wanted to be sure on this!
Thanks
Yes. From the 4.2 spec with 20010501 Errata:
" The message length is indicated in the BodyLength field and is verified by counting the number of characters in the message following the BodyLength field up to, and including, the delimiter immediately preceding the CheckSum tag (“10=”). "
" The CheckSum integrity check is calculated by summing the binary value of each character from the “8” of “8=“ up to and including the <SOH> character immediately preceding the CheckSum tag field and comparing the least significant eight bits of the calculated value to the CheckSum value (see Appendix B: CheckSum Calculation for a complete description). "
> Hello,
>
> I am writing a new Fix Engine from scratch for our comapny and I wanted to confirm something.
>
> The Body length is calculated from the tag after body length 9=d(delim) to the end without the check sum tag.
>
> The Check sum is calculated by feeding the entire buffer (FIX.4.1 - end delim without the 10= ) and giving it the body length and it will return a char value of three.
>
> I just wanted to be sure on this!
>
> Thanks
>