• 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 a socket to use a specific interface...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to tell a socket to use a specific interface...


  • Subject: Re: how to tell a socket to use a specific interface...
  • From: Justin Walker <email@hidden>
  • Date: Fri, 20 May 2005 13:27:12 -0700


On May 20, 2005, at 12:20, Philip George wrote:

How can I specify that a socket use a specific interface?

I thought it was bind() that did this, but it doesn't seem like that's what it's doing at all.

If I have an airport connection to one network and a cat5 connection to another, how can i tell my socket to use a specific one.

You can't. The destination address tells the network system how to route your packets. If you have multiple interfaces, and you can reach the destination in multiple ways, the system will pick the "best" (for its definition of "best").


[snip]
Now that I'm looking at this isolated code, it seems more and more obvious that bind() isn't what i want. Haha. Now that I think about it, I guess it's probably more likely related to the dns server called 'bind'.

Partially correct. bind(2) tells the system what address to assign to your endpoint in an up-coming exchange of packets. DNS isn't really related to your problem; DNS provides name translation services, for host name-to-network address translation; and reverse lookups, for network address-to-host name translation.


Now that you know what won't work, what are you trying to do?

Regards,

Justin

--
Justin C. Walker, Curmudgeon-At-Large
Institute for General Semantics
--------
When LuteFisk is outlawed,
Only outlaws will have LuteFisk
--------

_______________________________________________
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


References: 
 >how to tell a socket to use a specific interface... (From: Philip George <email@hidden>)

  • Prev by Date: Re: Getting the IP address of computer
  • Next by Date: Re: how to tell a socket to use a specific interface...
  • Previous by thread: Re: (correction) how to tell a socket to use a specific interface...
  • Next by thread: Re: how to tell a socket to use a specific interface...
  • Index(es):
    • Date
    • Thread