On Fri, 19 Feb 2010, Przemysław Czerpak wrote:
Hi,
> > 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.
Looking at header files seems that I can port it to OS2 (WATCOM) and
DOS-WATTCP but it will not work in MS-Windows builds so it will be
necessary to create independent implementation giving similar
functionality for this system only.
I can commit basic implementation for all systems except MS-Windows
(it would be nice if you can test it in OS2 GCC and OW builds) and
maybe later someone will create windows implementation.
best regards,
Przemek
_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour