© 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_11

11. XPC at a Glance

Volodymyr Vashurkin1  
(1)
Dnipro, Ukraine
 

In this chapter, we’ll provide an overview of XPC mechanisms and their main concepts, and we’ll present the most typical use case.

XPC Basics

Cross Process Communication (XPC) is a lightweight mechanism for interprocess communication integrated with Grand Central Dispatch (GCD) and launchd.

XPC is designed as a native bidirectional way to exchange data. It follows a classic approach of data exchange over connection. It assumes that there is a server (listener) and multiple clients (connections).

Clients can find the services to ...

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.