SwiftclassSecureMessaging
class SecureMessaging.XPCUtils.Connection
Members 18
- deinit
deinit - field
var _nextConnectionID: Int - field
var _nextRequestID: Int - field
var connection: NSXPCConnection - field
var connectionID: Int - field
var interruptionHandlerBlock: (@SecureMessaging.XPCActor @Sendable () -> ())? - field
let jsonDecoder: Foundation.JSONDecoder - field
let jsonEncoder: Foundation.JSONEncoder - field
let listenerEndpoint: NSXPCListenerEndpoint? - field
let logger: os.Logger - field
let machServiceName: String - field
let queue: OS_dispatch_queue_serial - field
let remoteObjectInterface: NSXPCInterface - field
var runningRequests: [Int : SecureMessaging.XPCUtils.XPCInterfaceRequest] - field
var xpc: A - func
addInterruptionHandlerBlock(@SecureMessaging.XPCActor @Sendable () -> ()) async -> () - func
createDaemonInterface<A, B where A1: SecureMessaging.XPCUtils.CollaboratorProtocol, B1: SecureMessaging.XPCUtils.XPCableError>(resultType: A1.Type, errorType: B1.Type, isReconnectionEvent: Bool, requestCreationBlock: @Sendable (CheckedContinuation<SecureMessaging.XPCUtils.CollaboratorProtocol, Error>) -> SecureMessaging.XPCUtils.XPCInterfaceRequest, xpcBlock: @Sendable (A, @Sendable (SecureMessaging.XPCUtils.CollaboratorProtocol?, Foundation.Data?) -> ()) -> ()) async throws -> A1 - init
SecureMessaging.XPCUtils.Connection.__allocating_init(queue: OS_dispatch_queue_serial, machServiceName: String, remoteObjectInterface: NSXPCInterface, listenerEndpoint: NSXPCListenerEndpoint?) -> SecureMessaging.XPCUtils.Connection<A>
Header
class SecureMessaging.XPCUtils.Connection<A> { let logger: os.Logger var _nextRequestID: Swift.Int var _nextConnectionID: Swift.Int let queue: __C.OS_dispatch_queue_serial let machServiceName: Swift.String let remoteObjectInterface: __C.NSXPCInterface let listenerEndpoint: __C.NSXPCListenerEndpoint? let jsonDecoder: Foundation.JSONDecoder let jsonEncoder: Foundation.JSONEncoder var connectionID: Swift.Int var connection: __C.NSXPCConnection var xpc: A var runningRequests: [Swift.Int : SecureMessaging.XPCUtils.XPCInterfaceRequest] final var interruptionHandlerBlock: (@SecureMessaging.XPCActor @Sendable () -> ())? init(queue: __C.OS_dispatch_queue_serial, machServiceName: Swift.String, remoteObjectInterface: __C.NSXPCInterface, listenerEndpoint: __C.NSXPCListenerEndpoint?) final func createDaemonInterface<A1, B1>(resultType: A1.Type, errorType: B1.Type, isReconnectionEvent: Swift.Bool, requestCreationBlock: @Sendable (_: Swift.CheckedContinuation<any SecureMessaging.XPCUtils.CollaboratorProtocol, any Swift.Error>) -> SecureMessaging.XPCUtils.XPCInterfaceRequest, xpcBlock: @Sendable (A, @escaping @Sendable ((any SecureMessaging.XPCUtils.CollaboratorProtocol)?, Foundation.Data?) -> ()) -> ()) async throws -> A1 where A1: SecureMessaging.XPCUtils.CollaboratorProtocol, B1: SecureMessaging.XPCUtils.XPCableError final func addInterruptionHandlerBlock(_: @escaping @SecureMessaging.XPCActor @Sendable () -> ()) async deinit }