Re: bsd sockets + selecting network interface
Re: bsd sockets + selecting network interface
- Subject: Re: bsd sockets + selecting network interface
- From: Josh Graessley <email@hidden>
- Date: Mon, 15 Dec 2008 18:00:08 -0800
It's not quite that simple. You can select an interface when
generating multicast packets using a socket option. You can bind your
socket to an IP address assigned to a specific interface and all
traffic generated by that socket will have that source address,
however that doesn't guarantee that the traffic will go out the
interface that IP address is assigned to.
What are you trying to achieve?
-josh
On Dec 15, 2008, at 5:51 PM, Joe Lake wrote:
hello,
I have an app that uses bsd sockets to do its networking. now my
client wants to run it on a machine with two active network
interfaces. I have heard that it is possible to select which
network interface my socket uses using ioctl().
has anyone done this before on os x? does anyone have any example
code?
thanks a lot!
Joe
_______________________________________________
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
_______________________________________________
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