         address: BluetoothAddress,
         isRandom: Bool = false,
         backlog: Int = 10
-    ) throws -> L2CAPSocket {
+    ) async throws -> L2CAPSocket {
         let address = L2CAPSocketAddress(
             lowEnergy: address,
             isRandom: isRandom

        backlog: Int = 10
    ) async throws -> L2CAPSocket {
        let address = try await hostController.readDeviceAddress()
        return try lowEnergyServer(
            address: address,
            isRandom: isRandom,
            backlog: backlog

        try socket.fileDescriptor.setSocketOption(socketOption)
    }
    
    public var securityLevel: SecurityLevel {
        get throws {
            let socketOption = try socket.fileDescriptor.getSocketOption(BluetoothSocketOption.Security.self)
            return socketOption.level
        }
    }
    
    /// Attempt to get L2CAP socket options.
    public var options: L2CAPSocketOption.Options {
        get throws {
            return try socket.fileDescriptor.getSocketOption(L2CAPSocketOption.Options.self)
        }
    }
}

