Module: fathom/tools

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.
Source:

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.
Source:

(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)
Source:

(static) isConnected()

Do we have Internet connectivity ?
Source: