Ditto 5.0.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
ditto::DittoConfig::SmallPeersOnlyConnect Class Reference

Small peers only connection configutation. More...

Inheritance diagram for ditto::DittoConfig::SmallPeersOnlyConnect:
Inheritance graph
[legend]
Collaboration diagram for ditto::DittoConfig::SmallPeersOnlyConnect:
Collaboration graph
[legend]

Public Member Functions

 SmallPeersOnlyConnect (std::string private_key="")
 
 SmallPeersOnlyConnect (const SmallPeersOnlyConnect &other)=default
 
 SmallPeersOnlyConnect (SmallPeersOnlyConnect &&other)=default
 
SmallPeersOnlyConnectoperator= (const SmallPeersOnlyConnect &other)=default
 
SmallPeersOnlyConnectoperator= (SmallPeersOnlyConnect &&other)=default
 
Type get_type () const override
 
const std::string & get_private_key () const
 

Additional Inherited Members

- Public Types inherited from ditto::DittoConfig::Connect
enum class  Type { server , small_peers_only }
 Connection configuration type.
 
- Static Public Member Functions inherited from ditto::DittoConfig::Connect
static std::shared_ptr< Connectserver (std::string url)
 Factory method to create a server connection.
 
static std::shared_ptr< Connectsmall_peers_only (std::string private_key="")
 Factory method to create a small-peers-only connection.
 

Detailed Description

Small peers only connection configutation.

You usually won't construct a SmallPeersOnlyConnect instance directly. Instead you will use the Connect::small_peers_only() factory function or DittoConfig::set_small_peers_only_connect().

Member Function Documentation

◆ get_type()

Type ditto::DittoConfig::SmallPeersOnlyConnect::get_type ( ) const
overridevirtual