Server connection configuration. More...
Public Member Functions | |
| ServerConnect (std::string url) | |
| ServerConnect (const ServerConnect &other)=default | |
| ServerConnect (ServerConnect &&other)=default | |
| ServerConnect & | operator= (const ServerConnect &other)=default |
| ServerConnect & | operator= (ServerConnect &&other)=default |
| Type | get_type () const override |
| const std::string & | get_url () 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. | |
Server connection configuration.
You usually won't construct a ServerConnect instance directly. Instead you will use the Connect::server() factory function or DittoConfig::set_server_connect().
|
overridevirtual |
Implements ditto::DittoConfig::Connect.