• 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: How to tell which interface is active on OS X ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to tell which interface is active on OS X ?


  • Subject: Re: How to tell which interface is active on OS X ?
  • From: Quinn <email@hidden>
  • Date: Thu, 28 Mar 2002 11:17:24 +0000

At 13:06 -0500 21/3/02, Peter Sichel wrote:
You need to get the local protocol address from the connected
socket (or endpoint) since more than one interface might be
active. Both Open Transport and BSD networking provide a function
for just this purpose.

Indeed. This is discussed in more depth in TN 1145. Look for the section "Multi-homing and FTP".

<http://developer.apple.com/technotes/tn/tn1145.html>

For BSD sockets programmers the analogue to OTGetProtAddress is getsockname (for the local address) and getpeername (for the remote access).

S+E
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Technical Support * Networking, Communications, Hardware
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.

References: 
 >How to tell which interface is active on OS X ? (From: Matt Mashyna <email@hidden>)
 >Re: How to tell which interface is active on OS X ? (From: Peter Sichel <email@hidden>)

  • Prev by Date: Re: SystemConfiguration Help
  • Next by Date: Re(2): FTP in the Finder
  • Previous by thread: Re: How to tell which interface is active on OS X ?
  • Next by thread: RE: Stops Receiving UDP Packets
  • Index(es):
    • Date
    • Thread