Method and system for carrying out socket connection and communication maintaining by using http to realize gap crossing
A technology of http protocol and connection channel, which is applied in the field of computer network, can solve problems such as socket communication difficulties, and achieve the effect of ensuring identity
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0042] Embodiment 1. A method for implementing Socket keep-alive communication across gatekeepers through http.
[0043] figure 1 It is a flow chart of a method for implementing Socket keep-alive communication across a network gatekeeper through http according to Embodiment 1 of the present invention, as shown in figure 1 As shown, the embodiment of the present invention includes the following steps:
[0044] Step S101: the first port of the first server receives the request initiated by the client, and sends the request packet to the second port of the first server in the form of Socket communication;
[0045] Step S102: after the second port receives the request packet, establish a SocketChannel so that an unbroken connection channel is established between the second port and the third port of the first server;
[0046] Step S103: After the third port receives the request packet through the connection channel, it establishes an http request for communication with the secon...
Embodiment 2
[0074] Embodiment 2. A method for implementing Socket keep-alive communication across gatekeepers through http.
[0075] figure 2 It is a flow chart of a method for implementing Socket keepalive communication across a gatekeeper through http according to Embodiment 2 of the present invention, including the following steps:
[0076] Step S201: the first port of the first server receives the request initiated by the client, and sends the request packet to the second port of the first server in the form of Socket communication;
[0077] Step S202: the second port monitors the client request, and starts a thread for Socket communication after monitoring the client request connection;
[0078] Step S203: After the second port receives the request packet, it initiates a new Socket connection to communicate with the third port of the first server, uses the NIO flow to establish a SocketChannel to simulate Socket communication, and the second port Establishing an uninterrupted conn...
Embodiment 3
[0088] Embodiment 3: A system for implementing Socket keep-alive communication across gatekeepers through http.
[0089] The system of Embodiment 3 of the present invention will be described in detail below.
[0090] The system for implementing Socket keep-alive communication across a network gatekeeper through http according to Embodiment 3 of the present invention includes: a client, a first server, a second server, and a service server, and there is a network between the first server and the second server. Gate, where:
[0091] The first server is outside the gatekeeper, the client sends the request data packet to the first server through Socket, and the first server sends the processing result data packet from the second server through Socket to said client;
[0092] The second server has established a storage mapping table in the gatekeeper, and the first server communicates with the second server using the http protocol, and the first server sends the The request pack...
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