From 3fc29ed18ea46e83e2ba2d4b39e52239771f427c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Smr=C5=BE?= Date: Sun, 7 May 2023 11:23:31 +0200 Subject: Network: use IPv6 socket internally --- include/erebos/network.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'include/erebos/network.h') 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 #include -struct sockaddr_in; +struct sockaddr_in6; namespace erebos { @@ -91,7 +91,9 @@ public: std::string name() const; std::optional 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; -- cgit v1.2.3