summaryrefslogtreecommitdiff
path: root/include/erebos/network.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/erebos/network.h')
-rw-r--r--include/erebos/network.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/erebos/network.h b/include/erebos/network.h
index c211fbf..ed31823 100644
--- a/include/erebos/network.h
+++ b/include/erebos/network.h
@@ -6,7 +6,7 @@
#include <functional>
#include <typeinfo>
-struct sockaddr_in;
+struct sockaddr_in6;
namespace erebos {
@@ -91,7 +91,9 @@ public:
std::string name() const;
std::optional<Identity> identity() const;
- const struct sockaddr_in & address() const;
+ const struct sockaddr_in6 & address() const;
+ string addressStr() const;
+ uint16_t port() const;
bool hasChannel() const;
bool send(UUID, const Ref &) const;