PIP 5.6.1
Platform-Independent Primitives
Classes | Public Member Functions | Public Attributes | List of all members
PIPeer::PeerInfo Class Reference

Public information about a discovered peer. More...

#include <pipeer.h>

Classes

struct  PeerAddress
 Network address of a peer endpoint. More...
 

Public Member Functions

 PeerInfo ()
 Constructs an empty peer description.
 
 ~PeerInfo ()
 Destroys the peer description.
 
bool isNeighbour () const
 Returns whether the peer is a direct neighbour.
 
int ping () const
 Returns the best known ping in milliseconds.
 
PINetworkAddress fastestAddress () const
 Returns the fastest known address of the peer.
 

Public Attributes

PIString name
 Peer name.
 
PIVector< PeerAddressaddresses
 Known addresses of the peer.
 
int dist
 Distance in hops from the local peer (0 for direct neighbours).
 
PIStringList neighbours
 Names of direct neighbours for this peer.
 

Detailed Description

Public information about a discovered peer.