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: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 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 <[EMAIL PROTECTED]> 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 | [EMAIL PROTECTED]
Born in Roswell... married an alien...

Reply via email to