Information transmitting method between application and protocol stack and processing device

An application program and information transmission technology, applied in the field of data processing, can solve problems such as increasing performance consumption, and achieve the effect of reducing performance loss, improving processing performance, and avoiding switching

Active Publication Date: 2014-06-25
北京太一星晨信息技术有限公司
View PDF5 Cites 19 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Therefore, although the technical solution proposed by LWIP avoids the performance consumption caused by the system call, it also i

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
  • Information transmitting method between application and protocol stack and processing device
  • Information transmitting method between application and protocol stack and processing device
  • Information transmitting method between application and protocol stack and processing device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0056] Such as figure 1 As shown, this embodiment provides an information transmission method between an application program and a protocol stack, including:

[0057] Step S101: the application program uses the socket API based on the callback function table to call the function function of the protocol stack to perform the corresponding function;

[0058] In this embodiment, the protocol stack can be a TCP protocol stack, and the application program uses a socket application programming interface based on a callback function table, and the function function of calling the protocol stack includes:

[0059] When the system starts, specify the callback function corresponding to each socket application programming interface in the callback function table. The callback function is an internal interface function provided by the protocol stack, which is used to call the corresponding function function of the protocol stack, and transfer the parameters from the socket Take it out fr...

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 provides an Information transmitting method between an application and a protocol stack and a processing device. The method comprises the steps that (1) an application uses a socket application programming interface based on a callback function table and calls the performance function of a protocol stack to execute a corresponding function, (2) when the protocol stack carries out packet processing and/or timeout processing, if an event that the application is needed to be notified appears, the corresponding message is generated, and the generated message is inserted into a message queue, (3) when the protocol stack carries out message processing, the message is extracted from the message queue,, the processing function corresponding to the application is called to carry out processing, and the message queue is emptied after the processing is completed. According to the method and the device, the system calling is replaced by a single task message queue polling mechanism, and the processing performance of the protocol stack is improved.

Description

technical field [0001] The invention relates to data processing, in particular to an information transmission method and a processing device between an application program and a protocol stack. Background technique [0002] At present, the commonly used dedicated protocol stacks are roughly divided into two types, one is a commercial proprietary protocol stack based on the linux or FreeBSD standard protocol stack, and the other is a protocol stack that follows the TCP protocol stack standard and is modified according to a certain system framework. The obtained open source lightweight protocol stack, the most common one that can be transplanted for commercial use is LWIP, and other protocol stacks are similar to OpenTCP. Most of these open source protocol stacks are suitable for theoretical research and teaching of protocol stacks. Although some practical technologies and concepts are proposed for their implementation, they lack some specific implementation solutions and are ...

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
IPC IPC(8): H04L29/06G06F9/54G06F9/48
Inventor 冯璐
Owner 北京太一星晨信息技术有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products