apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Trawick <traw...@attglobal.net>
Subject Re: Question about getting IP addresses
Date Thu, 23 Jan 2003 14:39:31 GMT


Damir Dezeljin wrote:

> Hi.
>
> I create an APR socket and bind it to 0.0.0.0: .
>
> How can I get all the IP addresses on which the socket is listening?

no APR way to do that...  probably no portable way to do that...

on most BSD-like network stacks you can use ioctl(SIOCGIFCONF) to iterate
through the interfaces, then assume that there isn't any funky sys
config that limits the app's bind to a certain interface


Mime
View raw message