Skip to content

Commit 6c6c7c1

Browse files
committed
Fix SocketTransfer build
1 parent f77e039 commit 6c6c7c1

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

Sources/SwiftNetwork/Connection/Connection.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -969,7 +969,7 @@ public struct TCP: StreamProtocol {
969969
#if !NETWORK_EMBEDDED
970970
@_spi(Essentials)
971971
@available(Network 0.1.0, *)
972-
public struct DatagramBridge: DatagramProtocol {
972+
public struct DatagramBridge: DatagramProtocol, Sendable {
973973
public typealias ContentType = Void
974974

975975
public let belowProtocol: Void
@@ -1353,7 +1353,7 @@ public struct QUICStream: StreamProtocol {
13531353
/// UDP supports sending and receiving datagrams.
13541354
@_spi(Essentials)
13551355
@available(Network 0.1.0, *)
1356-
public struct UDP: DatagramProtocol {
1356+
public struct UDP: DatagramProtocol, Sendable {
13571357
public typealias ContentType = [UInt8]
13581358

13591359
private var preferNoChecksum: Bool?
@@ -1397,8 +1397,8 @@ public struct UDP: DatagramProtocol {
13971397
/// protocol stack when configuring IP options.
13981398
@_spi(Essentials)
13991399
@available(Network 0.1.0, *)
1400-
public struct IP: NetworkProtocolOptions {
1401-
public enum BelowProtocol {
1400+
public struct IP: NetworkProtocolOptions, Sendable {
1401+
public enum BelowProtocol: Sendable {
14021402
case void
14031403
#if !NETWORK_EMBEDDED
14041404
case bridge(DatagramBridge)

Sources/SwiftNetwork/Protocols/IPProtocol.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public struct IPProtocol: NetworkProtocol {
5555
// Destination Address: UInt128
5656
}
5757

58-
public enum Version: UInt8 {
58+
public enum Version: UInt8, Sendable {
5959
/// Allows any IP version.
6060
case any = 0
6161
/// Uses only IP version 4 (IPv4).
@@ -64,7 +64,7 @@ public struct IPProtocol: NetworkProtocol {
6464
case v6 = 6
6565
}
6666

67-
public enum AddressPreference: UInt8 {
67+
public enum AddressPreference: UInt8, Sendable {
6868
case any = 0
6969
case temporary = 1
7070
case stable = 2

0 commit comments

Comments
 (0)