Ditto
1.0.8
|
An identity to be used while in development when you want to control either or both of the app name and the site ID of the peer. More...
Public Member Functions | |
DevelopmentIdentity (std::string name, uint64_t id) | |
Construct a new DevelopmentIdentity. More... | |
Public Attributes | |
std::string | app_name |
uint64_t | site_id |
An identity to be used while in development when you want to control either or both of the app name and the site ID of the peer.
ditto::Identity::DevelopmentIdentity::DevelopmentIdentity | ( | std::string | name, |
uint64_t | id | ||
) |
Construct a new DevelopmentIdentity.
name | the name of the app. Use this to ensure that connections between devices are only established if they share the same app name. |
id | the site ID for the device. Use this to identity different users or devices. Site IDs are persisted between sessions when using a development identity. Site IDs should be unique and not reused by different users or devices. |
std::string ditto::Identity::DevelopmentIdentity::app_name |
The app name associated with the identity.
uint64_t ditto::Identity::DevelopmentIdentity::site_id |
The site ID associated with the identity.