Ditto 4.7.1
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
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).