Exemplo n.º 1
0
 def __init__(self, sourceNode, ksize, network, storage={}):
     RPCProtocol.__init__(self, waitTimeout=rpc_timeout)
     self.router = RoutingTable(self, ksize, sourceNode)
     self.storage = ForgetfulStorage()
     self.sourceNode = sourceNode
     self.network = network
Exemplo n.º 2
0
 def __init__(self, sourceNode, ksize, network):
     RPCProtocol.__init__(self, waitTimeout=RPC_TIMEOUT)
     self.router = RoutingTable(self, ksize, sourceNode)
     self.sourceNode = sourceNode
     self.network = network
Exemplo n.º 3
0
 def __init__(self, sourceID, ksize=20):
     self.router = RoutingTable(self, ksize, Node(sourceID))
     self.storage = {}
     self.sourceID = sourceID