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 getUid(self): return ( f2fcore.f2fPeerGetUIDHi(self.__id_cptr),\ f2fcore.f2fPeerGetUIDLo(self.__id_cptr) )