-
Notifications
You must be signed in to change notification settings - Fork 6
sniffer
Henk van Cann edited this page Dec 5, 2023
·
2 revisions
The sniffer is part of Parside and detects if the CESR stream contains CESR binary, CESR Text, JSON, CBOR, MGPK.
If any of JSON, CBOR, MGPK then the parser regexes to find the version string inside the JSON, CBOR, and MGPK and from the version string extracts the number of characters/bytes that is the length of the JSON, CBOR, or MGPK. The parser then resumes sniffing. When the sniff result is 'CESR' then when at the top level looks for the CESR version count code or any other count codes.
Source Slack Cesride thread: Feb 2 2023