• 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
TN 1145 - Listing 8
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

TN 1145 - Listing 8


  • Subject: TN 1145 - Listing 8
  • From: Eric Long <email@hidden>
  • Date: Thu, 04 Mar 2004 11:28:53 -0800

Hi,

I am trying to use a code sample, presented in TN 1145 (Living in a Dynamic
TCP/IP Environment). In specific, I'm looking at "Listing 8 - Using System
Configuration framework for IP address change notification."

Are there any known issues with the example demonstrated here? I'm trying
it out on 10.3.2 in a small dummy application.

I have a callback defined as:

static void IPListChanged( SCDynamicStoreRef store,
CFArrayRef changedKeys,
void *info );


I pass IPListChanged into the function in listing 8 for the
SCDynamicStoreCallBack parameter. I don't see any errors occurring in the
execution of the function, everything looks like it went well.

After calling CreateIPAddressListChangeCallbackSCF(), I call:

CFRunLoopAddSource(CFRunLoopGetCurrent(), sourceRef,
kCFRunLoopDefaultMode);

(I also tried passing kCFRunLoopCommonModes)

To test if the callback gets called when the IP list changes, I unplug from
Ethernet and open up the Network panel in System Preferences to see that the
OS has recognized that I'm no longer connected. The OS sees the change, but
my callback never gets called.

I'm a bit puzzled.

Thanks in advance,

Eric
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.


  • Prev by Date: Re: ioctl always returns 0
  • Next by Date: Re: macnetworkprog digest, Vol 3 #663 - 8 msgs
  • Previous by thread: FW: ioctl always returns 0
  • Next by thread: Re: macnetworkprog digest, Vol 3 #663 - 8 msgs
  • Index(es):
    • Date
    • Thread