summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJeff Trawick <trawick@apache.org>2000-12-13 22:30:22 +0000
committerJeff Trawick <trawick@apache.org>2000-12-13 22:30:22 +0000
commit50d4242fdb161d0e3d3bdb001b2b33d37a4f94e6 (patch)
treed9269c344e78e34bed479e81edb327c71e5ff34e /include
parentd23dcb0b6f6943eebf966006b3b09d78a80f92cb (diff)
downloadapr-50d4242fdb161d0e3d3bdb001b2b33d37a4f94e6.tar.gz
Add apr_getnameinfo(), which uses getnameinfo() when APR_HAVE_IPV6 is
defined. APR_HAVE_IPV6 will only be defined if getnameinfo() is present. Still to do: Switch to this in Apache and axe apr_get_hostname(). OS/2 and Win32 logic for reporting getaddrinfo() failures is from existing code. The OS/2 code doesn't look right to me (need to add APR_OS_START_xyz?) I'm not sure what is needed for pre-BONE BeOS. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60947 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include')
-rw-r--r--include/apr_network_io.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/apr_network_io.h b/include/apr_network_io.h
index 219fbfbde..4b37a61ed 100644
--- a/include/apr_network_io.h
+++ b/include/apr_network_io.h
@@ -306,6 +306,16 @@ apr_status_t apr_getaddrinfo(apr_sockaddr_t **sa,
apr_pool_t *p);
/**
+ * Look up the host name from an apr_sockaddr_t.
+ * @param hostname The hostname.
+ * @param sa The apr_sockaddr_t.
+ * @param flags Special processing flags.
+ */
+apr_status_t apr_getnameinfo(char **hostname,
+ apr_sockaddr_t *sa,
+ apr_int32_t flags);
+
+/**
* Parse hostname/IP address with scope id and port.
*
* Any of the following strings are accepted: