hffix
hffix copied to clipboard
Let's rewrite the checks in message_reader::init()
- Strengthen the checks (for example, check that the separating symbol is '='
- We will detect invalid messages as soon as possible
TODO
- Add checks that tags are numbers
- Add a check that each tag has a corresponding value (and remove this check from the iterator increment)
- Add hash sum check
Reviewing...
TODO
- Add checks that tags are numbers
Yeah that's probably a good idea. I used to think that this was a waste of CPU cycles but I've changed my mind.
- Add a check that each tag has a corresponding value (and remove this check from the iterator increment)
I think it's already true that if a tag has no corresponding value, then the message will be considered invalid?
- Add hash sum check
What kind of hash sum check? We already have the FIX checksum.
- The checksum we do not verify (
Update
- The checksum we do not verify (
We have the option to verify the checksum though. We leave it to the library user to decide if they want to verify the checksum. https://jamesdbrock.github.io/hffix/classhffix_1_1message__reader.html#ad3d5b61394355c230321018cdc38a57b