pyrolab.nameserver.start_ns_loop

Contents

pyrolab.nameserver.start_ns_loop#

start_ns_loop(cfg: ~pyrolab.configure.NameServerConfiguration, loop_condition: ~typing.Callable = <function <lambda>>) None[source]#

Utility function that starts a new NameServer and enters its requestloop.

This function is a reimplemntation of the Pyro5.nameserver.start_ns_loop that allows for a loop condition to kill the loop. Alternatively, the loop can be shut down using ctrl+c.

Parameters:
cfgNameserverConfiguration

The configuration object for the nameserver.

loop_conditioncallable, optional

A callable that returns a boolean value. If the value is True, the loop will continue. If the value is False, the loop will stop. Defaults to lambda: True.