apr-dev mailing list archives

Damir Dezeljin <programing@nib.si> writes:
> Hi.
>
> I writen an daemon which is executed in inetd (part of the code is below).
> I have problems getting remote IP address and remote port. I use:
> apr_socket_addr_get(&addr_local, APR_LOCAL, apr_sock);
> to get local address and port, and
> apr_socket_addr_get(&addr_local, APR_LOCAL, apr_sock);
> to get the remote one, but this doesn't work (I get 0.0.0.0 for the IP and
> port 0).
fix committed... you can use the patch for Unix I posted previously
if you don't want to update APR from CVS
Thanks for finding this!
--
Jeff Trawick | trawick@attglobal.net
Born in Roswell... married an alien...