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

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


  • Subject: Re: Which network interface is being used??? (CFNetwork question)
  • From: John Turnipseed <email@hidden>
  • Date: Mon, 13 Mar 2006 19:16:24 -0600

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

  • Prev by Date: RE: Unscheduling CFReadStream from run loop
  • Next by Date: Re: Which network interface is being used??? (CFNetwork question)
  • Previous by thread: Re: Which network interface is being used??? (CFNetwork question)
  • Next by thread: Re: Which network interface is being used??? (CFNetwork question)
  • Index(es):
    • Date
    • Thread