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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 
