def __init__(self): """ Main class for the DHT server """ CmdApp.__init__(self) self.remote_server = None self.dht_table = None self.client = MyDHTClient() self.ring_lock = threading.RLock() self.usage = \ """
def __init__(self): """ A helpful script for starting multiple servers from command line """ CmdApp.__init__(self) self.usage = \ """
def __init__(self,verbose=False,logfile=None): """A MyDHT client for interacting with MyDHT servers """ CmdApp.__init__(self,verbose=verbose,logfile=logfile) self.usage = \ """