Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Fast parsing method of TLV format protocol based on C language

An analysis method and C language technology, applied in the direction of program code conversion, instrumentation, electrical digital data processing, etc., can solve the problem of slow network request speed, achieve shortened interface request time, fast network request speed, and strong network communication capabilities Effect

Inactive Publication Date: 2019-02-01
杭州斯凯数据科技集团有限公司
View PDF5 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The present invention aims to solve the problem of slow network request speed between the existing 2G network connection client and server, and provides a 2G network connection client and server with fast network request speed, strong network communication capability, and network data exchange Fast, TLV format data parsing speed fast C language-based TLV format protocol fast parsing method

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Fast parsing method of TLV format protocol based on C language
  • Fast parsing method of TLV format protocol based on C language

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0061] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.

[0062] Embodiment, the fast analysis method of TLV format agreement based on C language, refer to figure 1 As shown, there is a compiler and a parser on the client, and a compiler and a parser on the server, so that both the client and the server have the ability to encode and decode at the same time; The link module realizes mutual data exchange between the client and the server;

[0063] The TCP / IP transport protocol is encapsulated in the transport layer, and then the data stream of the data object tlv format is used to transmit the data of the 2G network, so as to realize the fast data exchange between the client and the server.

[0064] This embodiment replaces the common HTTP network module access (HTTP+TLV) by a two-way communication network channel socket long link module (TCP / IP+TLV), encapsulates the TCP / IP transport protocol at the transport...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a TLV format protocol fast parsing method based on C language. The invention belongs to the technical field of TLV format protocol parsing, which makes the network request speed between the 2G network connection client and the server fast, the network communication ability strong, the network data exchange fast and the TLV format data parsing fast. A compiler and a parser are arranged on the client, and a compiler and a parser are arranged on the server, so that both the client and the server have the coding ability and the decoding ability at the same time; Client andserver realize data exchange between client and server through socket long link module. The TCP / TP transport protocol is encapsulated in the transport layer, and then the data stream of data object tlv format is used to transmit the data of 2G network, so as to realize the fast data exchange between the client and the server. The parser is equipped with a TLV data parsing interface which can deserialize a piece of data in TLV format into a struct type data parsing interface.

Description

technical field [0001] The invention relates to the technical field of TLV format protocol parsing, in particular to a C language-based TLV format protocol fast parsing method. Background technique [0002] The current 2G network connection generally adopts the HTTP network module access (HTTP+TLV) method, and the single interface request time of the HTTP network module access method is generally 8s-10s, and the network request speed between the client and the server is slow. [0003] In the C language environment, to analyze the data of a TLV protocol, it is generally necessary to implement a separate analysis function for a certain type of data. If there are multiple types of data in the project, data analysis of multiple TLV protocols is required. , which will inevitably lead to code redundancy and low development efficiency. Contents of the invention [0004] The present invention aims to solve the problem of slow network request speed between the existing 2G network ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F8/41H04L29/08
CPCG06F8/427H04L67/02
Inventor 徐文龙
Owner 杭州斯凯数据科技集团有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products