| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
| The SCNetworkInterface configuration is stored either per-set or per-service. What this means is that you need to have an SCNetworkInterface that was derived from a service. Instead of iterating over the interfaces from SCNetworkInterfaceCopyAll you'll want to call SCNetworkSetCopyCurrent to copy the current set, call SCNetworkSetCopyServices to copy the services in that set, find the service with the desired interface (SCNetworkServiceGetInterface, SCNetworkInterfaceGetInterfaceType), and than use that interface to update the configuration. Note: you should have had a syslog() message telling you that the SCNetworkInterfaceSetConfiguration call returned an error. - Allan p.s. in your example code, there's no need for the SCDynamicStore calls. On Feb 18, 2008, at 9:05 AM, Jonathan Guy wrote:
|
_______________________________________________ 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: | |
| >Switching Airport of in code using SCF (From: Jonathan Guy <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
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.