xpc_session_t
A C type that sends messages to a server process.
Declaration
typealias xpc_session_t = OS_xpc_sessionDiscussion
XPC sessions are stateful connections you use to send structured messages to a separate process. Once established, a session remains active until one side of the connection cancels it, at which point the system invalidates the connection. Unlike lower-level xpc_connection functions, the system makes no attempt to reestablish a connection or relaunch the service.
Topics
Creating a session
xpc_session_txpc_session_create_mach_service(_:_:_:_:)xpc_session_create_xpc_service(_:_:_:_:)xpc_session_create_flags_txpc_session_copy_description(_:)xpc_session_set_target_queue(_:_:)
Managing life cycle
xpc_session_activate(_:_:)xpc_session_cancel(_:)xpc_session_set_cancel_handler(_:_:)xpc_session_set_incoming_message_handler(_:_:)xpc_session_incoming_message_handler_txpc_session_cancel_handler_t
Sending messages
xpc_rich_error_txpc_rich_error_can_retry(_:)xpc_rich_error_copy_description(_:)xpc_session_send_message(_:_:)xpc_session_send_message_with_reply_async(_:_:_:)xpc_session_reply_handler_txpc_session_send_message_with_reply_sync(_:_:_:)