• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Determining "default" address from Rendezvous resolve
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Determining "default" address from Rendezvous resolve


  • Subject: Re: Determining "default" address from Rendezvous resolve
  • From: Peter Sichel <email@hidden>
  • Date: Fri, 20 Sep 2002 11:14:34 -0400

At 9:50 AM -0700 9/19/02, Dean Dauger wrote:
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!

As I understand it, Rendezvous operates on directly attached
IP subnets. Thus it should be possible to use the System Configuration
Framework to identify the IP address of the primary interface on the
localhost and use this to select the desired peer.

Since you don't really have much control over how the remote peer
is configured or views the network, the concept of "primary" interface
on the remote peer is ambiguous at best. What you can do is decide
which local interface you prefer to use. "Ethernet built-in (en0)" is
probably faster than "AirPort (en2)" when it's available.

The Address Scan tool in IPNetMonitorX (from my website) does
something like this. The target popup lists the attached
networks and localhost addresses.

- Peter Sichel
www.sustworks.com
_______________________________________________
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.

References: 
 >Determining "default" address from Rendezvous resolve (From: "Dean Dauger" <email@hidden>)

  • Prev by Date: Re: OTGetProtAddress failes with kOTStateChangeErr
  • Next by Date: Re: Determining "default" address from Rendezvous resolve
  • Previous by thread: Determining "default" address from Rendezvous resolve
  • Next by thread: Re: Determining "default" address from Rendezvous resolve
  • Index(es):
    • Date
    • Thread