is_online: Is the computer online?
Description
Ping some name servers that are always (well, almost) up.
If these are unreachable, then you are most probably not online.Usage
is_online(timeout = 0.2)
Arguments
timeout
Timeout for the pings.
Value
- Possible values:
TRUEYes, online.FALSENo, not online."nodns"We re online, but without a DNS service.