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

A double-ended task processing method

A task processing, double-ended technology, applied in the field of communication, can solve problems such as not providing a unified method

Active Publication Date: 2018-08-10
武汉神州数码云科网络技术有限公司 +1
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The problem with the existing double-ended task processing method is that for a request that needs to be responded to, a corresponding response must be specially set for it, even if the response only requires a simple response to the success or failure of the request
And it does not provide a unified way to deal with the communication disconnection event that occurs after the request is initiated

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 double-ended task processing method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0043] Such as figure 1 As shown, this embodiment discloses a double-ended task processing method, including:

[0044] Set the common request data structure PeerTask:

[0045] (1). Linked list node structure, linking PeerTask to a linked list, when the communication is disconnected, the linked list can be traversed to traverse all unfinished requests and perform disconnection processing;

[0046] (2). The context pointer is assigned when the PeerTask is initialized, and is passed in as a parameter when processing the callback function of the request;

[0047] (3). The callback function pointer of the request is assigned when the PeerTask is initialized, and will be called when the PeerTask is completed. (i.e. peer response pointer), error code;

[0048] (4). Peer disconnect flag, initialized to false, if the error code when the PeerTask is completed is the error code of communication disconnection, the flag will be set to true.

[0049] Set the general communication packet...

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 double-ended task processing method. The method includes: a first end generates a double-ended task PeerTask according to a preset double-ended task PeerTask data structure, and links the PeerTask to a preset linked list; the first end Generate a request packet according to the preset general communication packet structure, and send the request packet to the second end; after receiving the request packet, the second end processes the request packet, and The communication data packet structure generates a response data packet and sends the response data packet to the first end; after receiving the response data packet, the first end ends the PeerTask. The dual-end task processing method of the present invention proposes a general dual-control communication request task processing scheme, which can add new simple request tasks more easily, supports multiple interactive communication tasks without additional response data, and provides a unified How to handle communication disconnection.

Description

technical field [0001] The invention relates to the technical field of communications, in particular to a double-ended task processing method. Background technique [0002] When processing double-ended tasks, various types of communication requests need to be processed, such as [synchronous cache data request], [synchronous flush result request] and so on. Many requests need to respond to the requester after the processing is completed. For example, [synchronize cache data request], the IO initiator can be reported to the IO initiator only after the cache synchronization is completed. In this case, when setting the communication data structure, you must set multiple types. For example, if you set the type [Synchronous cache data request], you must set the corresponding [Synchronous cache data response], so that when the corresponding type of data is received Packets are processed. [0003] The problem existing in the existing double-ended task processing method is: for a r...

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): G06F9/44H04L12/883H04L49/9015
Inventor 李浩然
Owner 武汉神州数码云科网络技术有限公司