class MetaNet(object): def __init__(self, core): self.core = core self.local = LocalPeerFinder(core) self.dht = DHTPeerFinder(core) #self.exchange = ExchangePeerFinder(core) def start(self): self.local.start() self.dht.start()
def __init__(self, core): self.core = core self.local = LocalPeerFinder(core) self.dht = DHTPeerFinder(core)