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

A method and system for efficient sending, receiving and processing of client messages

A processing method and technology of a processing system, which are applied in the field of client message sending, receiving and processing, and client message sending, receiving and processing systems, can solve problems such as inability to solve server requests and high overhead, and achieve good real-time interaction and low overhead. , the effect of high sending and receiving success rate

Active Publication Date: 2018-06-22
SHENZHEN HAIYUN NEW ENERGY CO LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

But the disadvantage of this method is also obvious
First of all, its overhead is relatively large, and secondly, additional code is required to implement the sending queue. The biggest shortcoming is that it still cannot solve the situation where the client is waiting for a response but receives a server request.

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 and system for efficient sending, receiving and processing of client messages
  • A method and system for efficient sending, receiving and processing of client messages
  • A method and system for efficient sending, receiving and processing of client messages

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0028] It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other.

[0029] Such as Figure 4 As shown, a method for efficiently sending, receiving and processing client messages, which includes processing steps: using a sending queue and a single processing thread to realize the sending and receiving and processing logic of the client, the sending queue is used to store sending request messages, and the processing thread Used to send request messages, receive and process messages from the server.

[0030] Preferably, the processing steps are specifically: S1, check whether the sending queue is empty, if it is empty, skip to step S3, otherwise enter step S2; S2, take out the sending request from the sending queue and send it; S3, wait for the server to reply , and check whether it is timed out, if it is timed out, go to step S1, otherwise go to step S4; S4, check whether y...

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 and system for efficiently sending, receiving and processing client messages. The method includes processing steps: using a sending queue and a single processing thread to realize sending and receiving and processing logic of the client, the sending queue is used for storing sending request messages, and the processing thread is used for sending request messages, receiving and processing messages sent by the server. The system includes: a sending queue module, which is used to store the request information of the client; a processing module, which is used to send the request message, receive and process the message sent by the server. An efficient sending and receiving and processing method for client messages of the present invention utilizes a sending queue and a single processing thread to realize the sending and receiving and processing logic of the client, that is, uses less resources to achieve a higher success rate of sending and receiving and better interactive real-time performance . The present invention can be widely applied to message interaction systems of various clients and servers.

Description

technical field [0001] The invention relates to the field of network data communication, in particular to a method for sending, receiving and processing client messages, and also relates to a system for sending, receiving and processing client messages. Background technique [0002] Server and client are also called master-slave architecture, referred to as C / S structure, which is a network architecture, and each instance of client software can send a request to the server. In realizing the interaction between the server and the client, there are two common sending and receiving methods: one receiving one sending method and conventional queue method. [0003] Such as figure 1 As shown, the one-receive-one-send method: that is, after the client sends a request (M11), a receiving timeout (M12) will be set. If a response from the other party (M13) is received within this time, it is considered that the transmission is successful (M15), so that other services can be continued,...

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/08
CPCH04L67/01
Inventor 廖子强陈勇全符镇一唐泽鹏郑宏连赵兵
Owner SHENZHEN HAIYUN NEW ENERGY CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products