© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2021
V. VashurkinmacOS Daemonologyhttps://doi.org/10.1007/978-1-4842-7277-0_14

14. NSXPCListenerEndpoint: XPC Service Sharing

Volodymyr Vashurkin1  
(1)
Dnipro, Ukraine
 

In this chapter, we will discuss how to share entire XPC services with each other over a direct connection. You can find samples at Daemonology/7-NSXPCListenerEndpoint.

You’re already implemented a solution consisting of multiple daemons, services, and apps. At some point, you will want to use the functionality of one service in another. Let’s look at an example: assume that communication is required between the service of a daemon and the service of an app. See Figure 14-1.
Figure 14-1

Required

Get macOS Daemonology: Communicate with Daemons, Agents, and Helpers Through XPC now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.