示例#1
0
def showPeerList():
    print "Peerlist:"
    for index in range(f2fcore.f2fPeerListGetSize()):
        peer = f2fcore.f2fPeerListGetPeer(index)
        print "Peerid:", f2fcore.f2fPeerGetUIDHi(peer),\
            ",", f2fcore.f2fPeerGetUIDLo(peer), "localpeerid:",\
            f2fcore.f2fPeerGetLocalPeerId(peer)
    print
def showPeerList():
    print "Peerlist:"
    for index in range(f2fcore.f2fPeerListGetSize()):
        peer = f2fcore.f2fPeerListGetPeer(index)
        print "Peerid:", f2fcore.f2fPeerGetUIDHi(peer),\
            ",", f2fcore.f2fPeerGetUIDLo(peer), "localpeerid:",\
            f2fcore.f2fPeerGetLocalPeerId(peer)
    print
示例#3
0
 def getUid(self):
     return ( f2fcore.f2fPeerGetUIDHi(self.__id_cptr),\
              f2fcore.f2fPeerGetUIDLo(self.__id_cptr) )
 def getUid(self):
     return ( f2fcore.f2fPeerGetUIDHi(self.__id_cptr),\
              f2fcore.f2fPeerGetUIDLo(self.__id_cptr) )