Determining "default" address from Rendezvous resolve
Determining "default" address from Rendezvous resolve
- Subject: Determining "default" address from Rendezvous resolve
- From: "Dean Dauger" <email@hidden>
- Date: Thu, 19 Sep 2002 09:50:28 -0700
Hi,
I have an app that sucessfully registers, browses, and resolves via
Rendezvous/ZeroConfig using the CFNetService layer. (The app used to use
only SLP; in Jaguar, it now uses both simultaneously.) Everything is
working great, except the inconvenience that the resolve using
CFNetServiceGetAddressing could (correctly) return multiple IP addresses in
(apparently) random order. (After reviewing the Session 811 material, it
sounds like I must try each one.)
That randomness makes things inconvenient for me. Would it be possible,
perhaps in a future revision of Rendezvous, there could be a simple way of
determining which IP address refers to the "primary" or "default" IP
address? For example, something like how using kDefaultInetInterface in
OTInetGetInterfaceInfo works, or ordering the address list starting with the
"best" one. That would make things simpler for me. It would also help
because I would probably be able to choose the "best" interface, e.g., via
100BaseT rather than Airport, on the first try.
Thank you,
Dean
Dauger Research, Inc.
P. S. And if there is already a simple way to do that and I missed it,
please let me know! Thanks!
_______________________________________________
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.