xpc_connection_get_name(_:)
Returns the name of the remote service that creates the connection.
Declaration
func xpc_connection_get_name(_ connection: xpc_connection_t) -> UnsafePointer<CChar>?Parameters
- connection:
The connection object which is to be examined.
Return Value
The name of the remote service. If you obtained the connection through an invocation of another connection’s event handler, NULL is returned.
See Also
Remote peer information
xpc_connection_get_euid(_:)xpc_connection_get_egid(_:)xpc_connection_get_pid(_:)xpc_connection_get_asid(_:)xpc_connection_set_peer_entitlement_exists_requirement(_:_:)xpc_connection_set_peer_entitlement_matches_value_requirement(_:_:_:)xpc_connection_set_peer_lightweight_code_requirement(_:_:)xpc_connection_set_peer_platform_identity_requirement(_:_:)xpc_connection_set_peer_team_identity_requirement(_:_:)xpc_connection_set_peer_code_signing_requirement(_:_:)