Skip to content


ConnectivityChecker(interval, host, port, name = None, enabled = True, on_change = None) #

Regularly checks for online connectivity.

Tries to open a connection to the provided host and port every interval seconds and sets the online status accordingly.

If a nameis provided, also tries to resolve that name to a valid IP address during connectivity check and only set online to True if that succeeds as well.

enabled property writable #

Whether the check is enabled or not.

host property writable #

DNS host to query.

interval property writable #

Interval between consecutive automatic checks.

online property #

Current online status, True if online, False if offline.

port property writable #

DNS port to query.

check_immediately() #

Check immediately and return result.