Example #1
0
class PyroNS(Thread):
    #Starts a NameServer
    def __init__(self):
        Thread.__init__(self)
        self.nsStarter = NameServerStarter()
    def run(self):
        self.nsStarter.start()
        
    def waitUntilStarted(self):
        return self.nsStarter.waitUntilStarted()
    
    def stop(self):
        self.nsStarter.shutdown()
        pass
Example #2
0
 def __init__(self):
     Thread.__init__(self)
     self.nsStarter = NameServerStarter()