xpc_connection_create_from_endpoint(_:)
Creates a new connection from the specified endpoint.
Declaration
func xpc_connection_create_from_endpoint(_ endpoint: xpc_endpoint_t) -> xpc_connection_tParameters
- endpoint:
The endpoint from which to create the new connection.
Return Value
A new peer connection to the listener represented by the given endpoint.
Discussion
The same responsibilities of setting an event handler and resuming the connection after calling xpc_connection_create(_:_:) apply to the connection returned by this API. Since the connection yielded by this API is not associated with a name (and therefore is not rediscoverable), this connection will receive XPC_ERROR_CONNECTION_INVALID if the listening side crashes, exits or cancels the listener connection.