• 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: bsd sockets + selecting network interface
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: bsd sockets + selecting network interface
      • From: james woodyatt <email@hidden>
    • Re: bsd sockets + selecting network interface
      • From: Joe Lake <email@hidden>
References: 
 >bsd sockets + selecting network interface (From: Joe Lake <email@hidden>)

  • Prev by Date: bsd sockets + selecting network interface
  • Next by Date: Re: bsd sockets + selecting network interface
  • Previous by thread: bsd sockets + selecting network interface
  • Next by thread: Re: bsd sockets + selecting network interface
  • Index(es):
    • Date
    • Thread