• 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: Rendevous/Zeroconfig with Carbon CFM
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Rendevous/Zeroconfig with Carbon CFM


  • Subject: Re: Rendevous/Zeroconfig with Carbon CFM
  • From: Douglas Davidson <email@hidden>
  • Date: Thu, 16 May 2002 17:27:48 -0700

On Thursday, May 16, 2002, at 09:38 AM, Dean Dauger wrote:

I've written a Carbon CFM app using CW Pro 6, and I'd like to be able to
call CFNetServices so I can incorporate the new features into my code.
(Obviously, I'll check the OS version, etc.) I've been able to use Bundles
to access the right routines (CFNetServiceRegister,
CFNetServiceScheduleWithRunLoop, etc.) in Jaguar, but there are still a few
details missing. For example, I think I need to specify a runLoopMode using
one of these:

CF_EXPORT const CFStringRef kCFRunLoopDefaultMode;
CF_EXPORT const CFStringRef kCFRunLoopCommonModes;

However, I can't directly #include CFRunLoop.h or simply paste in these
references because CW's linker can't find these extern's. CarbonLib 1.5
doesn't seem to know about CFRunLoop.h or any of its pieces.

Is there another way to access these const's? Or is there entirely another,
better way to access CFNetServices from Carbon CFM?

For data symbols, CFBundle provides CFBundleGetDataPointerForName() and CFBundleGetDataPointersForNames(), parallel to CFBundleGetFunctionPointerForName() and CFBundleGetFunctionPointersForNames().

While kCFRunLoopDefaultMode is a CFString, whose value currently corresponds to "kCFRunLoopDefaultMode", I believe it is possible that value might change in the future.

Douglas Davidson
_______________________________________________
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.

References: 
 >Rendevous/Zeroconfig with Carbon CFM (From: "Dean Dauger" <email@hidden>)

  • Prev by Date: Re: CFSocketSendData timeout?
  • Next by Date: Re: ISP Dialer Application question
  • Previous by thread: Re: Rendevous/Zeroconfig with Carbon CFM
  • Next by thread: Re: Rendevous/Zeroconfig with Carbon CFM
  • Index(es):
    • Date
    • Thread