• 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: SCNetworkInterfaceGetConfiguration always returns NULL.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SCNetworkInterfaceGetConfiguration always returns NULL.


  • Subject: Re: SCNetworkInterfaceGetConfiguration always returns NULL.
  • From: Adhamh Findlay <email@hidden>
  • Date: Mon, 12 Nov 2007 10:31:09 -0600


On Nov 11, 2007, at 5:36 PM, Adhamh Findlay wrote:

Hi,

So I'm attempting to use the system configuration framework to determine if a network interface is active. If there are no active network interfaces then I want to disable some options...

I'm using MoreSCF as an example, but I get thinks to work properly because SCNetworkInterfaceGetConfiguration always returns NULL. The docs state that this means the passed in interface reference isn't active, but I'm have an active Airport connection when I run these tests. Other functions like SCNetworkInterfaceGetHardwareAddressString and SCNetworkInterfaceGetBSDName work fine...

Here's the code I'm using. Any thoughts? I'm a total CF noob, so be easy on me if I haven't done anything correctly. :-)

It was suggested that I use CFShow to print the thisInterface refer to make sure it was the right type. So I added CFShow(thisInterface) in the for loop and for every interface a SCNetworkInterface ref is printed. So I do have the right type.


Could this be a Leopard bug?


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >SCNetworkInterfaceGetConfiguration always returns NULL. (From: Adhamh Findlay <email@hidden>)

  • Prev by Date: Re: How to archive structs like NSRect
  • Next by Date: Re: Creating balloon type of window in Cocoa
  • Previous by thread: SCNetworkInterfaceGetConfiguration always returns NULL.
  • Next by thread: "(Not Responding)" problems in Leopard
  • Index(es):
    • Date
    • Thread