Mac Developer Library

Developer

XPC Services endpoint.h Reference

Options
Deployment Target:

On This Page
Language:

XPC Services endpoint.h Reference

Functions

  • Declaration

    Swift

    func xpc_endpoint_create(_ connection: xpc_connection_t!) -> xpc_endpoint_t!

    Objective-C

    xpc_endpoint_t xpc_endpoint_create ( xpc_connection_t connection );

    Parameters

    connection

    Only connections obtained through calls to xpc_connection_create*() may be given to this API. Passing any other type of connection is not supported and will result in undefined behavior.

    Return Value

    A new endpoint object.

    Discussion

    Creates a new endpoint from a connection that is suitable for embedding into messages.

    Import Statement

    import XPC

    Availability

    Available in OS X v10.7 and later.