Which network interface is being used??? (CFNetwork question)
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