Mailing Lists: Apple Mailing Lists

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

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



Peter,

It is a TCP connection created using the CFNetwork HTTP request calls. Thus far I haven't been able to find a way from a CFReadStream back to the IP address of the socket it's using.

Basically I'm just trying to report if there are multiple connections, which one is getting used. Ethernet, Airport, Modem, etc..

Again, I'm probably trying to do the impossible... because it was promised by somebody else... ;^)

-=- John

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



On Mar 13, 2006, at 08:16:50, Peter Sichel wrote:

On 3/12/06, John Turnipseed wrote:

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

If it's a TCP connection, you can request the IP address of the local
endpoint from the socket. Depending on your configuration and what you
are trying to do, this might be sufficient.


- Peter


_______________________________________________
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/john% 40nanonation.net


This email sent to 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
References: 
 >Which network interface is being used??? (CFNetwork question) (From: John Turnipseed <email@hidden>)
 >Re: Which network interface is being used??? (CFNetwork question) (From: "Peter Sichel" <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.