fathom.tools.* namespace. Provides higher level
utility functions and measurement tools implemented on top of lower
level (e.g. socket and proto) APIs.
Private methods are available to internal addon pages only.
Methods
(private, static) discovery(protocols, timeout)
Do network neighbour discovery.
Parameters:
Name | Type | Description |
---|---|---|
protocols |
Array | List of discovery protocols, valid values: 'local', 'route', 'internet', 'upnp', 'mdns', 'ping', 'arptable'. |
timeout |
number | Discovery timeout (in seconds). Applies to upnp, mdns and ping. |
(static) dnsLookup(hostname, server, port)
Resolve the IP address of the given hostname using Fathom DNS
and sockets implementations.
Parameters:
Name | Type | Description |
---|---|---|
hostname |
string | The hostname to resolve. |
server |
string | The DNS server to use (optinal, default is to lookup the system DNS server(s)). |
port |
number | The server port (optional, defaults to 53) |
(static) isConnected()
Do we have Internet connectivity ?