rpymostat_common.discovery module

class rpymostat_common.discovery.EngineDiscoverer[source]

Bases: object

Class to discover RPyMostat Engine over the network (mDNS / Avahi / DNS-SD)

rpymostat_common.discovery.discover_engine()[source]

Discover the RPyMostat Engine over the network, using mDNS / DNS-SD.

Returns:2-tuple of (engine_addr, engine_port) if discovered before a timeout is reached, otherwise raise a DiscoveryTimeoutException.