def _cspace_started(x, opts): if not transport_cspace.registered(): dhnio.Dprint(4, 'p2p_connector.UpdateTransports._cspace_started WARNING not registered: ' + str(x)) return x dhnio.Dprint(4, 'p2p_connector.UpdateTransports._cspace_started') keyID = transport_cspace.keyID() settings.setCSpaceKeyID(keyID) opts[0] = keyID l = transport_cspace.getListener() transport_control.StartProtocol('cspace', l, opts[0], opts[1], opts[2]) return x
def _cspace_done(x): reactor.addSystemEventTrigger('before', 'shutdown', transport_cspace.shutdown_final) if transport_cspace.registered(): settings.setCSpaceKeyID(transport_cspace.keyID()) self.automat('cspace-done', transport_cspace.A().state)
def _cspace_done(x): if transport_cspace.registered(): settings.setCSpaceKeyID(transport_cspace.keyID()) self.automat('cspace-done', transport_cspace.A().state)