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

Method, system and device for detecting network connectivity in client

A network connectivity and client-side technology, applied in the field of mobile Internet, can solve problems such as difficult to find connection status, occupy a lot of local resources, and long time interval between timing requests, so as to avoid multiple communications and calculations, save resources, and save resources Effect

Inactive Publication Date: 2014-03-26
BEIJING BAIDU NETCOM SCI & TECH CO LTD
View PDF6 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] However, in the first method, if the timing request interval is short, the client needs to make frequent requests, occupying a lot of local resources, and the requested server-related interfaces are under greater pressure
If the timing request interval is long, it is difficult for the client to detect changes in the network connection status in time
The second method is only judged when communicating with the server, and it is difficult to find the connection status when there is no data communication

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
  • Method, system and device for detecting network connectivity in client
  • Method, system and device for detecting network connectivity in client
  • Method, system and device for detecting network connectivity in client

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0031] Embodiments of the present invention are described in detail below, examples of which are shown in the drawings, wherein the same or similar reference numerals designate the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the figures are exemplary only for explaining the present invention and should not be construed as limiting the present invention.

[0032] Refer below figure 1 A method for detecting network connectivity in a client according to an embodiment of the present invention is described, including the following steps:

[0033] Step S110: the client determines whether the network status changes.

[0034] The network has two states: connected and disconnected, and there is no need to make repeated judgments during the state. Therefore, by grasping the timing of judging the network connectivity and performing the network connectivity detection on the event that causes the ne...

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 provides a method for detecting network connectivity in a client. The method comprises the following steps: the client judges whether a network state changes; if the client judges that the network state changes, the client initiates the communication with a server; if the client normally communicates with the server, the situation that the client communicates with the server is judged; if the client fails to communicate with the server normally, the situation that the client does not communicate with the server is judged. The method provided by the invention judges network connectivity while reducing interaction with the server, so as that calculation and resources of the client and the server are saved, and the detection efficiency is increased. The invention also discloses a system for detecting network connectivity in the client, and the client.

Description

technical field [0001] The invention relates to the technical field of mobile Internet, in particular to a method, system and device for detecting network connectivity in a client. Background technique [0002] After the client establishes a connection with the server, the connection is often interrupted due to various reasons such as software and hardware, such as damage to the network card, network switching, and changes in firewall rules, etc., which may cause the network disconnection between the client and the server. At this time, although the client and the server cannot be connected, the client has not yet made a judgment of network interruption with the server. [0003] There are currently two main methods for judging network connectivity in the client: [0004] (1) The client regularly sends requests to the request server, and judges the network connectivity according to whether there is a data response. If the server correctly returns a response within the prese...

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
Patent Type & Authority Applications(China)
IPC IPC(8): H04L12/26H04L1/16H04L29/06
Inventor 尚占锋
Owner BEIJING BAIDU NETCOM SCI & TECH CO LTD