MCPcopy Create free account
hub / github.com/cppla/ServerStatus / get_network

Function get_network

clients/client-psutil.py:144–153  ·  view source on GitHub ↗
(ip_version)

Source from the content-addressed store, hash-verified

142 return 0,0,0,0
143
144def get_network(ip_version):
145 if(ip_version == 4):
146 HOST = "ipv4.google.com"
147 elif(ip_version == 6):
148 HOST = "ipv6.google.com"
149 try:
150 socket.create_connection((HOST, 80), 2).close()
151 return True
152 except:
153 return False
154
155lostRate = {
156 '10010': 0.0,

Callers 1

client-psutil.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected