apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Orton <jor...@redhat.com>
Subject Re: Enumerating local IP addresses
Date Sat, 02 Oct 2004 16:53:16 GMT
On Fri, Oct 01, 2004 at 07:17:09PM -0600, David Barrett wrote:
> I'm happy to report that thanks to APR, I can now successfully cross-compile
> my server under Win32 and Unix, and run it on both!  I can't thank you all
> enough for your wonderful library!
> 
> So now that I'm running, however, I'm encountering some issues.  The first
> is as follows: how do I enumerate the IP addresses of the server?  My basic
> algorithm is as follows:

Yeah, getaddrinfo() is not really useful for that.  There are various 
non-portable interfaces like getifaddrs() for doing this.

joe

Mime
View raw message