Re: How to tell which interface is active on OS X ?
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.