On Fri, 19 Feb 2010, Maurilio Longo wrote:

Hi,

> Thanks guys,
> and, there's no way to list interface addresses in a portable way, is there?
> Right now I'm using a  hb_InetGetHosts( NetName() ), but I'm not sure it's the
> best way to go.

This may return only IP address to one interface.
I created code for POSIX systems which scans all
interfaces and return array with AF_INET interfaces
where each entry contains:
   { <ifname>, <ifaddr>, <bcastaddr>, <netmask> }
I'll check if it can work with MS-Windows and other
systems and if yes then I'll port it to harbour.

best regards,
Przemek
_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to