From 339b9f6e7b576c34826252062a9ccd93113c7da3 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 30 Aug 2023 10:33:47 +0200 Subject: [PATCH] net/StaticSocketAddress: add method GetSteadyPart() --- src/net/StaticSocketAddress.hxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/net/StaticSocketAddress.hxx b/src/net/StaticSocketAddress.hxx index 3557f5eb6..b7b3f2c73 100644 --- a/src/net/StaticSocketAddress.hxx +++ b/src/net/StaticSocketAddress.hxx @@ -116,6 +116,11 @@ public: bool SetPort(unsigned port) noexcept; #endif + [[gnu::pure]] + std::span GetSteadyPart() const noexcept { + return SocketAddress{*this}.GetSteadyPart(); + } + [[gnu::pure]] bool operator==(SocketAddress other) const noexcept { return (SocketAddress)*this == other;