summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2023-05-07 11:23:31 +0200
committerRoman Smrž <roman.smrz@seznam.cz>2023-05-07 17:47:11 +0200
commit3fc29ed18ea46e83e2ba2d4b39e52239771f427c (patch)
tree1aa1fc5e6806b8c7cc51d6fa536978a427aa3d85 /include
parent0c790e6850f0575f4d5ba8182c580182869ad57d (diff)
Network: use IPv6 socket internally
Diffstat (limited to 'include')
-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;