Algorithm for realizing protocol coding and decoding based on message tree
A message tree, encoding and decoding technology, applied in the field of computer programming, to achieve the effect of convenient network transmission, convenient management, and strong usability
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0034] The present invention provides a technical solution: an algorithm for implementing protocol encoding and decoding based on a message tree, comprising the following steps:
[0035] S1. Write the rules;
[0036] S2. Naming, the protocol name is capitalized, followed by camel case or underscore, and finally ends with "pcode.def";
[0037] S3. The protocol is described in a tree structure, where the field value types are byte, byte[], bit, bit[], string, string[], word(2bytes), dword(4bytes), if the field is modified with const , which means that the field does not need to be fuzzed, the field value: value(), fill in the int value directly or fill in hexadecimal, the string needs to be wrapped in double quotes, and the field value functions include LengthOf, Add, Sub, ValueIn, ValueRange, MAC2int With IP2int, fields need to be written in 1234 order.
[0038] In this embodiment, an algorithm is generated by encoding and decoding the protocol, which is convenient for manage...
Embodiment 2
[0040] The present invention provides a technical solution: an algorithm for implementing protocol encoding and decoding based on a message tree, comprising the following steps:
[0041] S1. Write the rules;
[0042] S2. Naming, the protocol name is capitalized, followed by camel case or underscore, and finally ends with "pcode.def";
[0043] S3. The protocol is described in a tree structure, where the field value types are byte, byte[], bit, bit[], string, string[], word(2bytes), dword(4bytes), if the field is modified with const , which means that the field does not need to be fuzzed, the field value: value(), fill in the int value directly or fill in hexadecimal, the string needs to be wrapped in double quotes, and the field value functions include LengthOf, Add, Sub, ValueIn, ValueRange, MAC2int With IP2int, the fields need to be written in 1234 order;
[0044] S4, based on lark, use form_parser to generate json message tree description;
[0045] S5, perform lexical ana...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com