A network detection method, network detection device and intelligent terminal
A network detection device and intelligent terminal technology, applied in the field of network applications, can solve the problems that users cannot know the status of hotspots and waste user time
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0027] A network detection method provided by an embodiment of the present invention is described below, please refer to figure 1 , the network detection method in the embodiment of the present invention includes:
[0028] In step 101, after the smart terminal accesses the wireless local area network, periodically obtain the parameter information of all sockets Socket in the kernel of the current smart terminal;
[0029] In the embodiment of the present invention, when the above-mentioned smart terminal accesses the wireless local area network, it may be that the smart terminal receives the connection instruction input by the user, and based on the above-mentioned connection instruction, accesses the wireless local area network determined by the above-mentioned connection instruction; In the Wi-Fi mode of the terminal, the smart terminal actively scans the wireless local area network that can be accessed in the current environment, and the smart terminal actively accesses any ...
Embodiment 2
[0056] On the basis of Embodiment 1, another network detection method provided by the embodiment of the present invention is described below, please refer to figure 2 , the network detection method in the embodiment of the present invention includes:
[0057] In step 201, after the smart terminal accesses the wireless local area network, detect whether there is a Socket in the kernel of the current smart terminal, if so, execute step 203, if not, execute step 202;
[0058] In the embodiment of the present invention, once the smart terminal accesses the wireless local area network, it can be detected whether there is a Socket in the kernel of the current smart terminal. Because when the smart terminal is in the state of being able to access the Internet, the system background of most smart terminals will actively create a Socket for TCP connection. Therefore, it can be preliminarily determined whether there is a TCP connection through the number of Sockets in the kernel.
[0...
Embodiment 3
[0069] On the basis of Embodiment 1, the third network detection method provided by the embodiment of the present invention is described below, please refer to image 3 , the network detection method in the embodiment of the present invention includes:
[0070] In step 301, after the smart terminal accesses the wireless local area network, periodically obtain the parameter information of all Sockets in the kernel of the current smart terminal;
[0071]In step 302, based on the parameter information of each Socket, judge the type of the link corresponding to each Socket respectively;
[0072] In step 303, determine the TCP status of the current network connection according to the quantitative relationship between different types of links;
[0073] In step 304, based on the TCP state of the current network connection, it is determined that the wireless local area network currently accessed by the above-mentioned smart terminal is a network that can access the Internet or a netw...
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