|
Ditto 5.0.0
|
Small peers only connection configutation. More...


Public Member Functions | |
| SmallPeersOnlyConnect (std::string private_key="") | |
| SmallPeersOnlyConnect (const SmallPeersOnlyConnect &other)=default | |
| SmallPeersOnlyConnect (SmallPeersOnlyConnect &&other)=default | |
| SmallPeersOnlyConnect & | operator= (const SmallPeersOnlyConnect &other)=default |
| SmallPeersOnlyConnect & | operator= (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< Connect > | server (std::string url) |
| Factory method to create a server connection. | |
| static std::shared_ptr< Connect > | small_peers_only (std::string private_key="") |
| Factory method to create a small-peers-only connection. | |
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().
|
overridevirtual |
Implements ditto::DittoConfig::Connect.