diff options
author | Roman Smrž <roman.smrz@seznam.cz> | 2019-12-27 17:20:04 +0100 |
---|---|---|
committer | Roman Smrž <roman.smrz@seznam.cz> | 2019-12-27 22:59:53 +0100 |
commit | ebdbf9a1cd5308bf1c64d8dc912e0ea0e9ac8633 (patch) | |
tree | f4a09848ef09bfd816b8aefd6dc3b4e5a5440905 /include/erebos | |
parent | a02ef25970cb97ab4c29b3859799062431ae668b (diff) |
Network server sending announcements
Diffstat (limited to 'include/erebos')
-rw-r--r-- | include/erebos/network.h | 18 | ||||
-rw-r--r-- | include/erebos/storage.h | 6 |
2 files changed, 20 insertions, 4 deletions
diff --git a/include/erebos/network.h b/include/erebos/network.h new file mode 100644 index 0000000..c29096f --- /dev/null +++ b/include/erebos/network.h @@ -0,0 +1,18 @@ +#pragma once + +#include <erebos/identity.h> + +namespace erebos { + +class Server +{ +public: + Server(const Identity &); + ~Server(); + +private: + struct Priv; + const std::shared_ptr<Priv> p; +}; + +}; diff --git a/include/erebos/storage.h b/include/erebos/storage.h index 3777572..95a4574 100644 --- a/include/erebos/storage.h +++ b/include/erebos/storage.h @@ -124,10 +124,8 @@ public: template<typename T> std::optional<Stored<T>> as() const; - private: - friend class Record; - std::string name; - Variant value; + const std::string name; + const Variant value; }; private: |