Skip to content

Commit

Permalink
#161 Use DataContainer with L2CAPSocket
Browse files Browse the repository at this point in the history
  • Loading branch information
colemancda committed Nov 7, 2024
1 parent 2541187 commit c095917
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Sources/Bluetooth/L2CAPSocket.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
// Copyright © 2018 PureSwift. All rights reserved.
//

#if canImport(Foundation)
import Foundation

#if !hasFeature(Embedded)
/// L2CAP Socket protocol.
public protocol L2CAPSocket {

associatedtype Data: DataContainer

/// Socket address
var address: BluetoothAddress { get }

Expand Down Expand Up @@ -76,5 +76,4 @@ public enum L2CAPSocketEvent {
}

public typealias L2CAPSocketEventStream = AsyncStream<L2CAPSocketEvent>

#endif
#endif

0 comments on commit c095917

Please sign in to comment.