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



--- 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:
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>)
 >Re: SO_BINDTODEVICE or sendto using specific network interface (From: Josh Graessley <email@hidden>)
 >Re: SO_BINDTODEVICE or sendto using specific network interface (From: Alex Telitsine <email@hidden>)
 >Re: SO_BINDTODEVICE or sendto using specific network interface (From: "Peter Sichel" <email@hidden>)
 >Re: SO_BINDTODEVICE or sendto using specific network interface (From: Alex Telitsine <email@hidden>)
 >Re: SO_BINDTODEVICE or sendto using specific network interface (From: "Justin C. Walker" <email@hidden>)
 >Re: SO_BINDTODEVICE or sendto using specific network interface (From: Alex Telitsine <email@hidden>)
 >Re: SO_BINDTODEVICE or sendto using specific network interface (From: "Peter Sichel" <email@hidden>)
 >Re: SO_BINDTODEVICE or sendto using specific network interface (From: Alex Telitsine <email@hidden>)
 >Re: SO_BINDTODEVICE or sendto using specific network interface (From: Josh Graessley <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.