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: SO_BINDTODEVICE or sendto using specific network interface




If you're using multicast packets, you can specify the interface using a multicast specific option. Otherwise, there is no way to control which interface the packets are sent on. That decision will be made based on the routing table.

-josh

On Dec 9, 2005, at 7:48 PM, Alex Telitsine wrote:

I have to send  UDP data from OSX, dual-ethernet system over two sattelite phones simultaneously.

So far, it seems that MacOSX is always determenes what interface to use based on destination (sendto) address only.
 
In Window, it is enough to “bind” socket to specific IP/interface instead of ANY_ADDR, Linux has SO_BINDTODEVICE  
(
)
 
Any advise on how to archive it on Mac OSX ?
 
Thanks,
@
 
 
 
 _______________________________________________
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

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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: 
 >SO_BINDTODEVICE or sendto using specific network interface (From: Alex Telitsine <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.