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

Function get_network

clients/client-linux.py:169–178  ·  view source on GitHub ↗
(ip_version)

Source from the content-addressed store, hash-verified

167 return t,u,p,d
168
169def get_network(ip_version):
170 if(ip_version == 4):
171 HOST = "ipv4.google.com"
172 elif(ip_version == 6):
173 HOST = "ipv6.google.com"
174 try:
175 socket.create_connection((HOST, 80), 2).close()
176 return True
177 except:
178 return False
179
180lostRate = {
181 '10010': 0.0,

Callers 1

client-linux.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected