Re: local host IP address on X
Re: local host IP address on X
- Subject: Re: local host IP address on X
- From: Vincent Lubet <email@hidden>
- Date: Tue, 16 Jul 2002 11:41:42 -0700
On Tuesday, July 16, 2002, at 02:32 AM, Quinn wrote:
The best fix is to use the System Configuration framework APIs to
build an IP address list, and also to be notified when that list
changes. Alternatively, you can use the get_ifi_info routine (on page
434 of Stevens) to get the full list of IP addresses and choose
amongst them.
At the BSD level I strongly recommend to use the library routine
getifaddrs() instead of doing all that work yourself with get_ifi_info.
Vincent
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.