httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Reid" <dr...@jetnet.co.uk>
Subject Re: apr_sockaddr_t
Date Tue, 14 Nov 2000 10:31:09 GMT
The field is there so that if we need to call inet_ntop then we have the
length of the string buffer that we should be passing in.  This seemed like
a useful thing to do at the time we decide what family the sockaddr is in...
It can be removed if people really object.

david

----- Original Message -----
From: "Tony Finch" <dot@dotat.at>
To: <new-httpd@apache.org>
Sent: Monday, November 13, 2000 9:37 PM
Subject: Re: apr_sockaddr_t


> Jeff Trawick <trawickj@bellsouth.net> wrote:
> >
> >>+    int addr_len;                  /* How big should the address buffer
be?
> >>+                                    * 16 for v4 or 48 for v6
> >>+                                    * used in inet_ntop...
> >>+                                    */
> >
> >  Consider renaming addr_len to addr_str_len
>
> What is "str" short for? Surely not "string" as in the other names in
> the structure, because that would be wrong.
>
> Tony.
> --
> en oeccget g mtcaa    f.a.n.finch
> v spdlkishrhtewe y    dot@dotat.at
> eatp o v eiti i d.    fanf@covalent.net
>


Mime
View raw message