summaryrefslogtreecommitdiff
path: root/ext/Socket/Socket.pm
diff options
context:
space:
mode:
authorPaul Evans <leonerd@leonerd.org.uk>2010-11-25 20:08:05 +0000
committerChris 'BinGOs' Williams <chris@bingosnet.co.uk>2010-11-25 20:08:05 +0000
commitd3f248d35fa98e3b8b9bcce1b564511eee77b7a3 (patch)
tree834b3284a0c2348a4d79441995080d706c8dc372 /ext/Socket/Socket.pm
parent4bc6101e53adda82ea90912bd4ea6ca42ed22f3f (diff)
downloadperl-d3f248d35fa98e3b8b9bcce1b564511eee77b7a3.tar.gz
[PATCH 3/3] Provide wrappers for IN6ADDR_ANY and IN6ADDR_LOOPBACK
Signed-off-by: Chris 'BinGOs' Williams <chris@bingosnet.co.uk>
Diffstat (limited to 'ext/Socket/Socket.pm')
-rw-r--r--ext/Socket/Socket.pm11
1 files changed, 11 insertions, 0 deletions
diff --git a/ext/Socket/Socket.pm b/ext/Socket/Socket.pm
index d4bd73cd7f..b0a72e5e83 100644
--- a/ext/Socket/Socket.pm
+++ b/ext/Socket/Socket.pm
@@ -112,6 +112,16 @@ Note - does not return a number.
Returns the 4-byte 'invalid' ip address. Normally equivalent
to inet_aton('255.255.255.255').
+=item IN6ADDR_ANY
+
+Returns the 16-byte wildcard IPv6 address. Normally equivalent
+to inet_pton(AF_INET6, "::")
+
+=item IN6ADDR_LOOPBACK
+
+Returns the 16-byte loopback IPv6 address. Normally equivalent
+to inet_pton(AF_INET6, "::1")
+
=item sockaddr_family SOCKADDR
Takes a sockaddr structure (as returned by pack_sockaddr_in(),
@@ -231,6 +241,7 @@ require XSLoader;
pack_sockaddr_in6 unpack_sockaddr_in6
sockaddr_in sockaddr_in6 sockaddr_un
INADDR_ANY INADDR_BROADCAST INADDR_LOOPBACK INADDR_NONE
+ IN6ADDR_ANY IN6ADDR_LOOPBACK
AF_802
AF_AAL
AF_APPLETALK