diff options
author | Roman Smrž <roman.smrz@seznam.cz> | 2021-12-09 22:45:43 +0100 |
---|---|---|
committer | Roman Smrž <roman.smrz@seznam.cz> | 2021-12-09 22:45:59 +0100 |
commit | 380f8e539d73f37c2ef5d7133d3e1b6dda105f4a (patch) | |
tree | 505f743d8de3e1fcb20f10e99ab56f81feae8461 /include/erebos | |
parent | 1cef5fc2744d2428f28976c7adb0f476d8bc3bcf (diff) |
Test: distinguish address and identity info for peers
Diffstat (limited to 'include/erebos')
-rw-r--r-- | include/erebos/network.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/erebos/network.h b/include/erebos/network.h index 252c3c7..07ae586 100644 --- a/include/erebos/network.h +++ b/include/erebos/network.h @@ -6,6 +6,8 @@ #include <functional> #include <typeinfo> +struct sockaddr_in; + namespace erebos { class Server @@ -54,6 +56,7 @@ public: std::string name() const; std::optional<Identity> identity() const; + const struct sockaddr_in & address() const; bool hasChannel() const; bool send(UUID, const Ref &) const; |