def __init__(self, udpPort=4000, dataStore=None, routingTable=None, networkProtocol=None): EntangledNode.__init__(self, udpPort, dataStore, routingTable, networkProtocol) self._blockingGetRequests = {} self._blockingReadRequests = {}
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 = []
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
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