net/StaticSocketAddress: add method GetLocalPath()

This commit is contained in:
Max Kellermann 2024-04-29 16:33:48 +02:00 committed by Max Kellermann
parent 6200c0dc46
commit 2a206ef309
1 changed files with 8 additions and 0 deletions

View File

@ -104,6 +104,14 @@ public:
*/
[[gnu::pure]]
std::string_view GetLocalRaw() const noexcept;
/**
* @see SocketAddress::GetLocalPath()
*/
[[nodiscard]] [[gnu::pure]]
const char *GetLocalPath() const noexcept {
return static_cast<const SocketAddress>(*this).GetLocalPath();
}
#endif
#ifdef HAVE_TCP