Ditto 4.8.0
Loading...
Searching...
No Matches
ditto::PresenceGraph Class Reference

Represents the Ditto mesh network of peers and their connections between each other. The localPeer is the entry point, all others are remote peers known by the local peer (either directly or via other remote peers). More...

#include <PresenceGraph.hpp>

Public Member Functions

 PresenceGraph (nlohmann::json)
 Construct a new Presence Graph object.
 

Public Attributes

Peer local_peer
 Returns the local peer (usually the peer that is represented by the currently running Ditto instance). The local_peer is the entry point, all others are remote peers known by the local peer (either directly or via other remote peers).
 
std::vector< Peerremote_peers
 Returns all remote peers known by the local_peer, either directly or via other remote peers.
 

Detailed Description

Represents the Ditto mesh network of peers and their connections between each other. The localPeer is the entry point, all others are remote peers known by the local peer (either directly or via other remote peers).