Пример #1
0
 def __init__(self,
              udpPort=4000,
              dataStore=None,
              routingTable=None,
              networkProtocol=None):
     EntangledNode.__init__(self, udpPort, dataStore, routingTable,
                            networkProtocol)
     self._blockingGetRequests = {}
     self._blockingReadRequests = {}
Пример #2
0
 def __init__(self,
              id=None,
              udpPort=4000,
              dataStore=None,
              routingTable=None,
              networkProtocol=None):
     EntangledNode.__init__(self, id, udpPort, dataStore, routingTable,
                            networkProtocol)
     self._blockingGetRequests = {}
     self._blockingReadRequests = {}
     self._tuplesToTrack = {}
     self._trackedTuples = []
Пример #3
0
 def joinNetwork(self, knownNodeAddresses=None):
     """ Causes the Node to join the Kademlia network; normally, this
     should be called before any other DHT operations.
     
     @param knownNodeAddresses: A sequence of tuples containing IP address
                                information for existing nodes on the
                                Kademlia network, in the format:
                                C{(<ip address>, (udp port>)}
     @type knownNodeAddresses: tuple
     """
     EntangledNode.joinNetwork(self, knownNodeAddresses)
     twisted.internet.reactor.callLater(15, self._startTupleTrack) #IGNORE:E1101
Пример #4
0
 def joinNetwork(self, knownNodeAddresses=None):
     """ Causes the Node to join the Kademlia network; normally, this
     should be called before any other DHT operations.
     
     @param knownNodeAddresses: A sequence of tuples containing IP address
                                information for existing nodes on the
                                Kademlia network, in the format:
                                C{(<ip address>, (udp port>)}
     @type knownNodeAddresses: tuple
     """
     EntangledNode.joinNetwork(self, knownNodeAddresses)
     twisted.internet.reactor.callLater(
         15, self._startTupleTrack)  #IGNORE:E1101
Пример #5
0
 def __init__(self, udpPort=4000, dataStore=None, routingTable=None, networkProtocol=None):
     EntangledNode.__init__(self, udpPort, dataStore, routingTable, networkProtocol)
     self._blockingGetRequests = {}
     self._blockingReadRequests = {}
Пример #6
0
 def __init__(self, id=None, udpPort=4000, dataStore=None, routingTable=None, networkProtocol=None):
     EntangledNode.__init__(self, id, udpPort, dataStore, routingTable, networkProtocol)
     self._blockingGetRequests = {}
     self._blockingReadRequests = {}
     self._tuplesToTrack = {}
     self._trackedTuples = []