Commit 57633fbc authored by Max Kellermann's avatar Max Kellermann

net/AllocatedSocketAddress: add methods IsV6Any(), IsV4Mapped()

parent 864c87e6
......@@ -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.
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment