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

Method for implementing asynchronous communication

A technology of asynchronous communication and implementation method, which is applied in the field of communication and can solve problems such as single applicable protocol

Active Publication Date: 2013-02-27
优地网络有限公司
View PDF5 Cites 16 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The disadvantage is that the applicable protocol is single, and the asynchronous communication function realized is relatively simple

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
  • Method for implementing asynchronous communication
  • Method for implementing asynchronous communication

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0035] Example 1: as figure 1 As shown, the present invention is an implementation method of asynchronous communication,

[0036] An asynchronous communication component is set between application A 101 and application B 105. The asynchronous communication component is divided into two parts: the management end 102 and the agent end 104. The management end 102 is placed on the active sending application A 101, and the agent end 104 is placed on the passive receiving end. on the application B105; the management terminal 102 and the agent terminal 104 perform asynchronous communication through the protocol stack 103.

[0037] figure 2 Shown is the data processing flow chart of the asynchronous communication component, as shown in the figure:

[0038] The sending process of the management terminal 102:

[0039] 1) The application A101 calls the asynchronous sending interface to send the request message in a non-blocking manner;

[0040] 2) The asynchronous sending function p...

Embodiment 2

[0056] Embodiment 2: The following is an embodiment of developing an asynchronous communication SOAP API in combination with the compiling tool gSOAP and this method.

[0057] The gSOAP compilation tool can automatically generate stubs and framework programs needed to develop the Soap protocol. The stub is an "agent" placed on the client side, and the framework is an "agent" placed on the server side. A function is declared in the stub, but the content in it is not a specific algorithm, but a series of network connection protocols, which automatically find the host where the framework is located, then exchange data with it, and get a series of codes that return values. At this time, the client process only needs to adjust the functions in the stub to realize data exchange with the remote server, thus ensuring the transparency of data transmission to the application process.

[0058] The processing flow of stub code generated by gSOAP is as follows:

[0059] 1. Initialize the...

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 method for implementing asynchronous communication. An asynchronous communication module and various application protocols are used for data communication. The method comprises the following steps: setting the asynchronous communication module between an application A and an application B, wherein the asynchronous communication module is divided into a management side and a proxy side which are placed on the application A as an initiating side and the application B as a receiving side respectively; and implementing asynchronous communication between the management side and the proxy side by a protocol stack.

Description

[0001] technical field [0002] The invention relates to a communication technology, in particular to a method for realizing data communication by using an asynchronous communication component. Background technique [0003] In the field of distributed communication, various application protocols will be encountered in the process of software development. Many application protocols provide code prototypes of synchronous mode, such as SNMP (Simple Network Management Protocol, Simple Network Management Protocol), SOAP (Simple Object Access Protocol, Simple Object Access Protocol) and so on. In synchronous mode, multiple requests are received at the same time, and these events are processed sequentially and synchronously. However, once a request that needs to be processed for a long time occurs, the processing efficiency will be reduced. [0004] How to use these protocol prototypes to implement the protocol API (Application Programming Interface, Application Programming Inter...

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/06H04L29/08
Inventor 黄宇殊杨亚鹏
Owner 优地网络有限公司
Features
  • Generate Ideas
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More