Re: SO_BINDTODEVICE or sendto using specific network interface
Re: SO_BINDTODEVICE or sendto using specific network interface
- Subject: Re: SO_BINDTODEVICE or sendto using specific network interface
- From: "Duane Murphy" <email@hidden>
- Date: Thu, 15 Dec 2005 12:24:57 -0800
--- At Thu, 15 Dec 2005 11:52:51 -0800, Josh Graessley wrote:
>The MoreAuthSample from Apple's website covers how to do this. It is
>well documented and works around a number of potentially nasty issues.
>
><http://developer.apple.com/samplecode/MoreAuthSample/
>MoreAuthSample.html>
>
>For a sample that uses MoreAuth, you can grab the BSDLLCTest. You
>will be using MoreAuth to get a bpf file descriptor instead of a
>PF_NDRV socket file descriptor, but it's pretty much the same thing.
>
><http://developer.apple.com/samplecode/BSDLLCTest/BSDLLCTest.html>
>
You can also read in Steven's "Unix Network Programming Volume 1" look
in the index under descriptor/passing.
MoreAuthSample is pretty good, except that it's really showing how to do
authorization (which is something you have to consider), but the
descriptor passing is very simple and very buried. It's there, you just
have to dig for it.
...Duane
_______________________________________________
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