summaryrefslogtreecommitdiff
path: root/include/apr_network_io.h
diff options
context:
space:
mode:
authorJeff Trawick <trawick@apache.org>2013-11-12 13:48:16 +0000
committerJeff Trawick <trawick@apache.org>2013-11-12 13:48:16 +0000
commitab2fb12d0604890ebb3bb1093e60127360b3f08f (patch)
tree6acda1edd1523b6c65baf99fdb5a210797f3ad9f /include/apr_network_io.h
parent28b03646432b8f0c5da5575c4a77283f385646ce (diff)
downloadapr-ab2fb12d0604890ebb3bb1093e60127360b3f08f.tar.gz
add apr_sockaddr_is_wildcard() API
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1541061 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/apr_network_io.h')
-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 d7ffaf509..8eaed2607 100644
--- a/include/apr_network_io.h
+++ b/include/apr_network_io.h
@@ -760,6 +760,16 @@ APR_DECLARE(int) apr_sockaddr_equal(const apr_sockaddr_t *addr1,
const apr_sockaddr_t *addr2);
/**
+ * See if the IP address in an APR socket address refers to the wildcard
+ * address for the protocol family (e.g., INADDR_ANY for IPv4).
+ *
+ * @param addr The APR socket address to examine.
+ * @remark The return value will be non-zero if the address is
+ * initialized and is the wildcard address.
+ */
+APR_DECLARE(int) apr_sockaddr_is_wildcard(const apr_sockaddr_t *addr);
+
+/**
* Return the type of the socket.
* @param sock The socket to query.
* @param type The returned type (e.g., SOCK_STREAM).