• 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
Which network interface is being used??? (CFNetwork question)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Which network interface is being used??? (CFNetwork question)


  • Subject: Which network interface is being used??? (CFNetwork question)
  • From: John Turnipseed <email@hidden>
  • Date: Sun, 12 Mar 2006 16:23:30 -0600


Maybe I'm missing something obvious... or I'm trying to do the impossible... (neither would be a first for me unfortunately ;^)


Is there an easy way... or I guess even a hard way if necessary... to determine which network interface a connection is using?

The scenario is a hierarchy of interfaces are defined in system preferences Ethernet, then AIrport, then one or more modem dial-up configurations. I need to know which one is being used to connect to a specified host.

I'd hoped that the SCNetworkReachability APIs might help, but it only appears to tell if a destination is reachable and if it would require some type of connection.

My application already makes periodic network calls using CFNetwork. Is it possible to determine which interface a CFReadStream is using? And if so, can that result then be resolved back to the user visible name from System Preferences... especially if the interface used is a dial-up connection.

Is any of this even possible?

Any ideas or suggestions would be greatly appreciated.

-=- John

------------------------------------------------
John Turnipseed
Macintosh Software Übercoder
Nanonation, Inc., Lincoln, Nebraska
<http://www.nanonation.net/>
<mailto:email@hidden>



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Which network interface is being used??? (CFNetwork question)
      • From: "Peter Sichel" <email@hidden>
    • Re: Which network interface is being used??? (CFNetwork question)
      • From: "Justin C. Walker" <email@hidden>
  • Prev by Date: Re: FSMountServerVolumeAsync() for DOMAIN mounts
  • Next by Date: Re: Which network interface is being used??? (CFNetwork question)
  • Previous by thread: Re: FSMountServerVolumeAsync() for DOMAIN mounts
  • Next by thread: Re: Which network interface is being used??? (CFNetwork question)
  • Index(es):
    • Date
    • Thread