Handshake and communication methods for gateway, gateway and Web communication system
A gateway and web browser technology, applied in the field of communication, can solve the problems of consuming web application server resources and low efficiency, and achieve the effect of efficient communication and real-time interactive data
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0082] figure 1 It is a flowchart of a gateway handshaking method provided by Embodiment 1 of the present invention.
[0083] like figure 1 As shown, the gateway handshake method in Embodiment 1 of the present invention includes:
[0084] S101. The gateway receives a handshake message from a web browser, where the handshake message carries a protocol upgrade request and address information of the web browser.
[0085] It should be noted that the protocol upgrade request is generally an HTTP GET request, and a specific example may be as shown in the following code:
[0086] GET / real-time HTTP / 1.1\r\n
[0088] Connection: Upgrade\r\n
[0089] ...\r\n
[0090] In the HTTP GET request, the address information of the Web browser may be carried in a new information element.
[0091] S102, the gateway changes the application layer protocol between the web browser and the gateway from the hypertext transfer protocol HTTP to the web socket protoc...
Embodiment 2
[0107] Based on the gateway handshake method described in Embodiment 1, such as image 3 As shown, Embodiment 2 of the present invention provides a gateway communication method, including the following steps:
[0108] S201. The gateway receives a data packet sent from a first web browser to a second web browser, where the data packet carries application data and address information of the second web browser.
[0109] Wherein, the first Web browser serves as a communication initiating node, and the second browser serves as a communication target node.
[0110] It should be noted that the application data in the data packet is structured and encapsulated according to the data format specified by the Websocket protocol, and the application data can be transmitted in the form of data frames.
[0111] It should be further explained that the address information of the second Web browser is generally encapsulated into a header file in the data packet before transmission, and the gat...
Embodiment 3
[0119] Based on the gateway handshake method of Embodiment 1, such as Figure 4 As shown, Embodiment 3 of the present invention also provides a gateway communication method, including the following steps:
[0120] S301. The gateway receives a data packet sent by a web browser to a backend server, where the data packet carries application data and address information of the backend server.
[0121] It should be noted that the back-end server is a web application server for providing services such as online information browsing to the web browser, and the back-end server is located behind a firewall and is in the same local area network as the gateway; further It should be noted that the application data is structured and encapsulated according to the data format specified by the Websocket protocol, and the application data can be transmitted in the form of data frames.
[0122] S302. According to the address information of the back-end server, the gateway establishes a data tr...
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