Example #1
0
File: dtuple.py Project: Daiver/jff
 def __init__(self,
              udpPort=4000,
              dataStore=None,
              routingTable=None,
              networkProtocol=None):
     EntangledNode.__init__(self, udpPort, dataStore, routingTable,
                            networkProtocol)
     self._blockingGetRequests = {}
     self._blockingReadRequests = {}
Example #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 = []
Example #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
Example #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
Example #5
0
 def __init__(self, udpPort=4000, dataStore=None, routingTable=None, networkProtocol=None):
     EntangledNode.__init__(self, udpPort, dataStore, routingTable, networkProtocol)
     self._blockingGetRequests = {}
     self._blockingReadRequests = {}
Example #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 = []