Unlock instant, AI-driven research and patent intelligence for your innovation.

A method of communicating with a client and a server

A client and server technology, applied in the field of communication, can solve the problems that the client does not know the long connection, cannot know the failure of the long connection, cannot know the establishment of the long connection, etc.

Active Publication Date: 2015-11-25
BEIJING QIHOO TECH CO LTD
View PDF4 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, at present, the establishment of a long connection is only the behavior of the server side. The client does not know whether the long connection has been established and how many long connections have been established, and even cannot know whether the long connection has expired.
Therefore, the client cannot know the establishment of the long connection, which is not conducive to the communication between the client and the server

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 of communicating with a client and a server
  • A method of communicating with a client and a server
  • A method of communicating with a client and a server

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0023] Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0024] figure 1 A method for communicating with a client at a server provided by an embodiment of the present invention is shown. figure 1 The shown method mainly shows the steps executed by the server side, and before the server executes step S110, the client first needs to construct and send a request message.

[0025] Specifically, when constructing the request message, the client obtains the application identifier of the appli...

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 a server for communicating with a client at the position of the server. By means of the method and the server, the client can timely know the setting situation of a long connection so as to be communicated with the server. The method includes that request messages sent by the client are received, and client identification of the client contained in the request messages is obtained; whether a long connection channel identification which corresponds to the client identification is stored in a client message list or not is determined, and if the long connection channel identification is stored, a first response message which indicates that the long connection is established is returned to the client; if the long connection channel identification is not stored, a long connection channel is distributed for the client, the long connection channel identification of the long connection channel and the client identification are stored into the client message list, and a second response message which indicates that the long connection is not established is returned to the client; and messages are transmitted between the server and the client based on the long connection established between the server and the client.

Description

technical field [0001] The invention relates to the communication field, in particular to a method for communicating with a client and a server. Background technique [0002] With the rapid development of the network, many applications based on the network have appeared, and these network applications include online video, online dating, and online games. Users of network applications need to communicate with the server through the client to obtain the services provided by the server. [0003] In order to realize the communication between the client and the server, it is first necessary to establish a connection between the client and the server. There are two commonly used connection methods, one is the long connection communication method, and the other is the short connection communication method. The so-called long connection communication means that after a connection is established, multiple data packets can be sent continuously on this connection, and then the connec...

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
IPC IPC(8): H04L29/06H04L29/08
CPCH04L65/1066H04L67/14
Inventor 左文建黄欢王晓峰杨涛吕本伟
Owner BEIJING QIHOO TECH CO LTD