Service discovery support

Discovery application.

class wsdiscovery.discovery.Discovery(**kwargs)

networking-agnostic generic remote service discovery mixin

clearRemoteServices()

clears remotely discovered services

searchServices(types=None, scopes=None, address=None, port=None, timeout=3)

search for services given the TYPES and SCOPES in a given TIMEOUT

setRemoteServiceByeCallback(cb)

Set callback, which will be called when new service appeared online and sent Hi message Service is passed as a parameter to the callback Set None to disable callback

setRemoteServiceHelloCallback(cb, types=None, scopes=None)

Set callback, which will be called when new service appeared online and sent Hi message

typesFilter and scopesFilter might be list of types and scopes. If filter is set, callback is called only for Hello messages, which match filter

Set None to disable callback

setRemoveServiceDisappearedCallback(cb)

Set callback, which will be called when new service disappears Service uuid is passed as a parameter to the callback Set None to disable callback

stop()
class wsdiscovery.discovery.ThreadedWSDiscovery(**kwargs)

threaded service discovery

stop()

cleans up and stops the discovery server

Lower-level support provided by the package make up the shared building blocks that application-level support is based on.