summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authortrawick <trawick@13f79535-47bb-0310-9956-ffa450edef68>2001-05-02 02:32:49 +0000
committertrawick <trawick@13f79535-47bb-0310-9956-ffa450edef68>2001-05-02 02:32:49 +0000
commitd2917f30b2f43e4447ce3782d66f57826a72a195 (patch)
treeb794bae5787c619c9a4c07e31b9c92a0e6b393c2 /include
parent97e850f2bb9eeba35375879ff5f0a83ad0933aab (diff)
downloadlibapr-d2917f30b2f43e4447ce3782d66f57826a72a195.tar.gz
Add a family field to apr_sockaddr_t so there is a straightforward place
to look to find the address family. (Yes, it could be found in addr->sa.sin.sin_family even if it was not an AF_INET socket but that isn't so friendly.) Also, try fairly hard to get the port field filled out properly. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61580 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include')
-rw-r--r--include/apr_network_io.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/apr_network_io.h b/include/apr_network_io.h
index 316ac95f3..ac1e0bd72 100644
--- a/include/apr_network_io.h
+++ b/include/apr_network_io.h
@@ -176,6 +176,8 @@ struct apr_sockaddr_t {
char *servname;
/** The numeric port */
apr_port_t port;
+ /** The family */
+ apr_int32_t family;
union {
/** IPv4 sockaddr structure */
struct sockaddr_in sin;