summaryrefslogtreecommitdiff
path: root/include/erebos
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2021-12-09 22:45:43 +0100
committerRoman Smrž <roman.smrz@seznam.cz>2021-12-09 22:45:59 +0100
commit380f8e539d73f37c2ef5d7133d3e1b6dda105f4a (patch)
tree505f743d8de3e1fcb20f10e99ab56f81feae8461 /include/erebos
parent1cef5fc2744d2428f28976c7adb0f476d8bc3bcf (diff)
Test: distinguish address and identity info for peers
Diffstat (limited to 'include/erebos')
-rw-r--r--include/erebos/network.h3
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;