diff options
Diffstat (limited to 'src/net/AllocatedSocketAddress.hxx')
-rw-r--r-- | src/net/AllocatedSocketAddress.hxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/net/AllocatedSocketAddress.hxx b/src/net/AllocatedSocketAddress.hxx index 62a9ffba6..f662f89ad 100644 --- a/src/net/AllocatedSocketAddress.hxx +++ b/src/net/AllocatedSocketAddress.hxx @@ -163,6 +163,14 @@ public: #endif #ifdef HAVE_TCP + bool IsV6Any() const noexcept { + return ((SocketAddress)*this).IsV6Any(); + } + + bool IsV4Mapped() const noexcept { + return ((SocketAddress)*this).IsV4Mapped(); + } + /** * Extract the port number. Returns 0 if not applicable. */ |