Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Alternative to bootstrap_register?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Alternative to bootstrap_register?



On 18 Nov 2009, at 15:58, Jean-Daniel Dupas wrote:

> Yes, but your server has to checkin before the client can lookup, else the lookup will failed. It work great in your example but this cannot easily be done when the client process is the one that launches the server process.
> That's where bootstrap_register was really useful has using this function, a client was able to create the service and lookup without having to wait the server readiness.

Sure, though even in that case it's fairly easy to arrange for the child to indicate its readiness through some other mechanism (distributed notifications via notify(3), for instance).  I'm slightly wary of the NSMachBootstrapService method because of its reliance on the bootstrap_register() deprecated API/SPI, and launchd is only easy to use that way on 10.6, right? Also, I'm not sure launchd supports Mach ports on 10.4, if that's an issue.

Anyway, I think we've probably covered every possibility here.

Kind regards,

Alastair.

--
http://alastairs-place.net



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Alternative to bootstrap_register? (From: Uli Kusterer <email@hidden>)
 >Re: Alternative to bootstrap_register? (From: Jean-Daniel Dupas <email@hidden>)
 >Re: Alternative to bootstrap_register? (From: Uli Kusterer <email@hidden>)
 >Re: Alternative to bootstrap_register? (From: Jean-Daniel Dupas <email@hidden>)
 >Re: Alternative to bootstrap_register? (From: Alastair Houghton <email@hidden>)
 >Re: Alternative to bootstrap_register? (From: Jean-Daniel Dupas <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.