Przemysław Czerpak wrote:
On Fri, 19 Feb 2010, Giancarlo Niccolai wrote:
Hi Giancarlo,
Nice to see your message here.
My best wishes to you.
:-) You're always in my mind. Respects.
With regards to
hb_InetGetHosts( NetName() )
If my memory is not wrong, it's the most portable way to know what's "your
address" (or your addresses; GetHosts may return more than one interface known under
your own name).
As you said, to get the list of physically available interfaces there are system specific low-level APIs. More than POSIX, I think that's it's a system specific call (i.e. I think there are differences in BSD, Solaris, Haiku, and Linux; they can also be found under proc/, but not always in the same places; but I admit that my remembering may be wrong here).
Having it multiplatform-ready at a simple call would galore :-).
Giancarlo.
_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour