Esempio n. 1
0
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()
Esempio n. 2
0
 def __init__(self, core):
     self.core = core
     self.local = LocalPeerFinder(core)
     self.dht = DHTPeerFinder(core)