A connection in serialized form.
struct XPCEndpoint
An XPCEndpoint can be passed around in an XPC message. The recipient of XPCEndpoint can use init(endpoint:targetQueue:options:cancellationHandler:)) to create as many distinct sessions as desired.
Unlike a connection, the endpoint is an inert object that does not have any runtime activity associated with it.
Initializers
- init(_:))
init(xpc_endpoint_t)— Copy-initialize from a C endpoint object.
Relationships
Conforms To
- Copyable
- CustomDebugStringConvertible
- Decodable
- Encodable
- Equatable
- Escapable
- Hashable
- Sendable
- SendableMetatype
init(_:)
Initializer | XPC
Copy-initialize from a C endpoint object.
init(_ endpoint: xpc_endpoint_t)
Parameters
- endpoint: The C endpoint object.