SwiftclassSecureMessaging

class SecureMessaging.XPCUtils.Connection

Members 18

  1. deinitdeinit
  2. fieldvar _nextConnectionID: Int
  3. fieldvar _nextRequestID: Int
  4. fieldvar connection: NSXPCConnection
  5. fieldvar connectionID: Int
  6. fieldvar interruptionHandlerBlock: (@SecureMessaging.XPCActor @Sendable () -> ())?
  7. fieldlet jsonDecoder: Foundation.JSONDecoder
  8. fieldlet jsonEncoder: Foundation.JSONEncoder
  9. fieldlet listenerEndpoint: NSXPCListenerEndpoint?
  10. fieldlet logger: os.Logger
  11. fieldlet machServiceName: String
  12. fieldlet queue: OS_dispatch_queue_serial
  13. fieldlet remoteObjectInterface: NSXPCInterface
  14. fieldvar runningRequests: [Int : SecureMessaging.XPCUtils.XPCInterfaceRequest]
  15. fieldvar xpc: A
  16. funcaddInterruptionHandlerBlock(@SecureMessaging.XPCActor @Sendable () -> ()) async -> ()
  17. funccreateDaemonInterface<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
  18. initSecureMessaging.XPCUtils.Connection.__allocating_init(queue: OS_dispatch_queue_serial, machServiceName: String, remoteObjectInterface: NSXPCInterface, listenerEndpoint: NSXPCListenerEndpoint?) -> SecureMessaging.XPCUtils.Connection<A>
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
}