Unlock instant, AI-driven research and patent intelligence for your innovation.

A method that supports socket synchronous and asynchronous communication modes at the same time

An asynchronous method, asynchronous communication technology, applied in transmission systems, electrical components, etc., can solve the problem that socket API can not solve the problem of use well, achieve good applicability and application prospects, and meet the effect of diverse needs

Active Publication Date: 2021-11-30
BEIJING SIMPLIGHT NANOELECTRONICS
View PDF8 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] The purpose of the present invention is to provide a method for simultaneously supporting socket synchronous and asynchronous communication modes, to solve the problem that the TCP / IP protocol stack currently applied to general embedded systems only supports the synchronous socket API and cannot solve some special problems well. Use problems in application scenarios

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
  • A method that supports socket synchronous and asynchronous communication modes at the same time
  • A method that supports socket synchronous and asynchronous communication modes at the same time
  • A method that supports socket synchronous and asynchronous communication modes at the same time

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0030] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0031] see Figure 1-5 , the present invention provides a technical solution:

[0032]A method that supports socket synchronous and asynchronous communication methods at the same time. In an embedded system, due to the reasonable division of tasks and in order to ensure real-time performance, there is generally a task (Task) that is responsible for receiving the received data from the driver. TCP / IP data packets, and process them, named here as receiving Task...

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 an implementation mechanism based on an embedded system that simultaneously supports socket synchronous and asynchronous communication modes. The implementation mechanism is implemented only by modifying the internal implementation of the socket API, but not modifying its external call interface, so that users can easily It is convenient to transplant the upper-layer application program, and choose synchronous mode or asynchronous mode according to the needs of the application program, which solves the problem that the TCP / IP protocol stack of the general embedded system only supports the synchronous mode and cannot satisfy some special application scenarios well The application requirements, this implementation mechanism can better meet the diverse requirements of applications, and has good applicability and application prospects.

Description

technical field [0001] The invention belongs to the technical field of related network communication, and in particular relates to a method for simultaneously supporting socket synchronous and asynchronous communication modes. Background technique [0002] When performing socket programming on the client side of the network, two communication methods, synchronous and asynchronous, are often seen. [0003] The so-called synchronous method means that when the client issues a function call, the call will wait and will not return until the result is not obtained. At this time, the program is blocked, and only after receiving the return value can it execute other commands. [0004] The asynchronous method means that when the client sends an asynchronous procedure call, the caller cannot get the result immediately. The component that actually handles the call notifies the caller when it is done, via a status, notification, or callback. [0005] Some large operating systems, suc...

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 Patents(China)
IPC IPC(8): H04L29/06
CPCH04L69/161H04L69/162
Inventor 冯海强
Owner BEIJING SIMPLIGHT NANOELECTRONICS