Contents

XPC_ERROR_CONNECTION_INTERRUPTED

An error that sends to the connection’s event handler when the remote service exits.

Declaration

var XPC_ERROR_CONNECTION_INTERRUPTED: xpc_object_t { get }

Discussion

Will be delivered to the connection’s event handler if the remote service exited. The connection is still live even in this case, and resending a message will cause the service to be launched on-demand. This error serves as a client’s indication that it should resynchronize any state that it had given the service.

Any messages in the queue to be sent will be unwound and canceled when this error occurs. In the case where a message waiting to be sent has a reply handler, that handler will be invoked with this error. In the context of the reply handler, this error indicates that a reply to the message will never arrive.

Messages that do not have reply handlers associated with them will be silently disposed of. This error will only be given to peer connections.

See Also

Errors