示例#1
0
    def __init__(self, urn=createURN("peer"),serverPort=4000, maxNeighbor=1):
        
        AbstractPeer.initialize(self,  urn,serverPort, maxNeighbor)
    
    

        
示例#2
0
 def __init__(self, urn=createURN("peer"),serverPort=4000, maxNeighbor=1):
     
     AbstractPeer.initialize(self,  urn,serverPort,maxNeighbor,peerType = AbstractPeer.PORTAL)
     
     
     self.__superPeers = {}
     
     self.__dimension = 1
示例#3
0
 def __init__(self,network, pid=createURN("rpycpeer"),udpPort=4000):
     
     AbstractPeer.initialize(self,  network, pid,udpPort)
示例#4
0
 def __init__(self, urn=createURN("peer"),serverPort=4000, maxNeighbor=1):
     
     self.__superPeerNeighbors = {}
     self.__levelNeighbor = 1
     
     AbstractPeer.initialize(self, urn,serverPort, maxNeighbor, peerType = AbstractPeer.SUPER)