apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@covalent.net
Subject Re: [PATCH] change apr_connect() to take apr_sockaddr_t, add apr_getaddrinfo()
Date Thu, 16 Nov 2000 19:02:27 GMT

> +
> +apr_status_t apr_getaddrinfo(apr_sockaddr_t **sa, 
> +                             const char *hostname,
> +                             apr_int32_t family,
> +                             apr_port_t port,
> +                             apr_pool_t *p);

Can/should we make the hostname, family, port, and pool a complete
structure that is shared across platforms?  Kind of like apr_finfo_t?

> +static void set_sockaddr_vars(apr_sockaddr_t *addr, int family)
> +{
> +    addr->sa.sin.sin_family = family;
> +    addr->sa.sin.sin_family = family;

Why twice?

Ryan

_______________________________________________________________________________
Ryan Bloom                        	rbb@apache.org
406 29th St.
San Francisco, CA 94131
-------------------------------------------------------------------------------


Mime
View raw message