But instead of retreiving sockets (using LAUNCH_JOBKEY_SOCKETS and
launch_data_get_fd()) you retreive your mach port (using
LAUNCH_JOBKEY_MACHSERVICES and launch_data_get_machport()).
The way to define a service in your plist is defined in the
MachServices section of launchd.plist reference (man launchd.plist).
And in the client application, you retreive it using
bootstrap_look_up() (from <servers/bootstrap.h>).
You can use the launch(3) API, but it's far easier to just use
bootstrap_check_in() to get your receive right.
--
Damien Sorresso
BSD Engineering
Apple Inc.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-dev/email@hidden
This email sent to email@hidden