Worker class to check internet connection. More...
Public Member Functions | |
__init__ (self, hostname="https://www.google.com/", timeout=1) | |
Create a new NetCheck instance. | |
checkConn (self) | |
Check the connection. | |
Data Fields | |
connectionState | |
Protected Attributes | |
_hostname | |
_timeout | |
Worker class to check internet connection.
boswatch.network.netCheck.NetCheck.__init__ | ( | self, | |
hostname = "https://www.google.com/" , |
|||
timeout = 1 |
|||
) |
Create a new NetCheck instance.
hostname | host against connection check is running ("https://www.google.com/") |
timeout | timeout for connection check in sec. (1) |
boswatch.network.netCheck.NetCheck.checkConn | ( | self | ) |
Check the connection.
|
protected |
|
protected |
boswatch.network.netCheck.NetCheck.connectionState |