Contents

XPC_ERROR_CONNECTION_INVALID

An error that sends to the connection’s event handler to indicate that the connection is no longer usable.

Declaration

var XPC_ERROR_CONNECTION_INVALID: xpc_object_t { get }

Discussion

Will be delivered to the connection’s event handler if the named service provided to xpc_connection_create(_:_:) could not be found in the XPC service namespace. The connection is useless and should be disposed of.

Any messages in the queue to be sent will be unwound and canceled when this error occurs, similarly to the behavior when XPC_ERROR_CONNECTION_INTERRUPTED occurs. The only difference is that the XPC_ERROR_CONNECTION_INVALID will be given to outstanding reply handlers and the connection’s event handler.

This error may be given to any type of connection.

See Also

Errors