예제 #1
0
파일: dtuple.py 프로젝트: Daiver/jff
 def __init__(self,
              udpPort=4000,
              dataStore=None,
              routingTable=None,
              networkProtocol=None):
     EntangledNode.__init__(self, udpPort, dataStore, routingTable,
                            networkProtocol)
     self._blockingGetRequests = {}
     self._blockingReadRequests = {}
예제 #2
0
파일: dtuple.py 프로젝트: a740122/entangled
 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
파일: dtuple.py 프로젝트: a740122/entangled
 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 = []