Method for designing communication protocol between client and server
A technology of communication protocol and design method, which is applied in the field of communication, can solve the problems of poor flexibility, large protocol changes of new functions, and large space occupied by serialization of sticky package risks, etc., so as to reduce labor costs, improve communication efficiency, and avoid sticky packages risk effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Examples
Embodiment Construction
[0021] The present invention will be specifically introduced below in conjunction with specific embodiments.
[0022] The communication protocol design method between the client and the server provided by the embodiment of the present invention includes the following steps:
[0023] S101, divide the Reactor model into a master Reactor model and a slave Reactor model, wherein the master Reactor model is used to create a server socket and receive a connection request from the client according to the server socket and generate a socket connected to the client, and assign the socket to the slave Reactor model ; From the Reactor model, it is responsible for separating multiple connected sockets, reading and writing network data, and throwing tasks involving business processing functions to the worker thread pool for completion.
[0024] S102, using the IdleStateHandler heartbeat detection processor to design two heartbeat mechanisms.
[0025] As a specific embodiment of the presen...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com