apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dagfinn Aarvaag" <dagfinn.aarv...@beepscience.com>
Subject RE: apr_sockaddr_info_get: Posible bug
Date Wed, 20 Nov 2002 12:45:14 GMT
Hi,

I see the same problem on Solaris 8 and Win32.
apr_sockaddr_info_get return apr code APR_SUCCESS,
but returned IP address and hostname in the struct apr_sockaddr_t are
"0.0.0.0" and "".

..but my apr version is old.

Regards Dagfinn


-----Original Message-----
From: trawick@rdu74-177-063.nc.rr.com
[mailto:trawick@rdu74-177-063.nc.rr.com]On Behalf Of Jeff Trawick
Sent: 20 November 2002 12:52
To: Damir Dezeljin
Cc: APR
Subject: Re: apr_sockaddr_info_get: Posible bug


Damir Dezeljin <programing@nib.si> writes:

> It look like that this function is used to initialize and construct
> apr_sockaddr_t variable. So I use:
> ---
>   apr_sockaddr_t *sa=NULL;
>   ...
>   apr_sockaddr_info_get(
>     &sa,
>     APR_ANYADDR,
>     APR_INET,
>     20000,
>     APR_IPV4_ADDR_OK,
>     my_pool
>   );
>   ...
>   apr_bind(apr_sock, sa);
> ---
>
> But this doesn't work. After this function call sa on Linux platform
> always points to NULL, on Windows it points where it was pointing prior
> function call. I'm using a CVS snapshoot of the APR library.

In other words, apr_sockaddr_info_get() failed (which probably means
your resolver failed).  What is the return code from
apr_sockaddr_info_get()?

What version of Linux is this, by the way?

--
Jeff Trawick | trawick@attglobal.net
Born in Roswell... married an alien...


Mime
View raw message