Implementation method of communication mode, server and client
A technology of implementation method and communication method, applied in the field of data communication, can solve the problems of cumbersome configuration process, increasing the attack surface of illegal network access, and large memory resources, etc.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0082] This embodiment involves the interaction between the client and the server, please refer to figure 1 , image 3 , a method for implementing a communication method, comprising the steps of:
[0083] S1. The server establishes an HTTP or HTTPS connection with the client;
[0084] Among them, in this embodiment, a distributed computer system supporting a broad scope of client-server mode, the client includes but is not limited to network servers, PCs, mobile devices such as mobile phones and tablets, and Internet of Things terminal devices, servers include but not limited to It is limited to servers in the Internet, local area network, or Internet of Things and other networks; in the implementation of specific applications, the server and the client are a virtual definition, not the physical concept of the server and the client, their roles can be switched, and the originator of the heartbeat information can be The client can also be the server; in the same way, the resp...
Embodiment 2
[0099] The difference between this embodiment and Embodiment 1 is that it defines how to send a connection upgrade request to the client through the HTTP or HTTPS connection:
[0100] In an optional implementation manner, the sending a connection upgrade request to the client through the HTTP or HTTPS connection includes:
[0101] receiving the heartbeat information sent by the client through the HTTP or HTTPS connection;
[0102] Send response information for the heartbeat information to the client through the HTTP or HTTPS connection, where the response information carries the connection upgrade request;
[0103]Specifically, in this embodiment, the client regularly sends one-way heartbeat data to the server, and its heartbeat data can be TCP heartbeats including TCP protocol layer heartbeats and application layer heartbeats, or UDP-based application layer heartbeats, and the server sends The client sends the response information for the heartbeat information, which can con...
Embodiment 3
[0113] The difference between this embodiment and Embodiment 1 and Embodiment 2 is that it defines how to switch a WebSocket connection to an HTTP or HTTPS connection:
[0114] Among them, HTTP or HTTPS communication is widely used, mature and reliable, especially in a large amount of data transmission scenarios; while WebSocket communication is short and compact, with low overhead, and data transmission can be duplexed in real time, so it can be used in command transmission or small data transmission Has a strong competitive advantage;
[0115] Specifically, in this embodiment, two modes of WebSocket connection and HTTP or HTTPS connection are provided at the same time, and a specific communication mode is selected according to business requirements. The instruction information or a small amount of data between the client and the server can be communicated through the WebSocket connection; if there is a large amount of data to be transmitted between the client and the server,...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More - R&D
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com



