Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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




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:
http://lists.apple.com/mailman/options/macnetworkprog/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.