Skip to content

Commit cad89aa

Browse files
committed
Expose TCP framing mode
1 parent f78cf25 commit cad89aa

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Sources/OSCKit/TCP/Client/OSCTCPClient.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ public final class OSCTCPClient {
2525
let tcpSocket: GCDAsyncSocket
2626
let tcpDelegate: OSCTCPClientDelegate
2727
let queue: DispatchQueue
28-
let framingMode: OSCTCPFramingMode
2928
var receiveHandler: OSCHandlerBlock?
3029
var notificationHandler: NotificationHandlerBlock?
3130

@@ -47,6 +46,9 @@ public final class OSCTCPClient {
4746
/// Returns a boolean indicating whether the OSC socket is connected to the remote host.
4847
public var isConnected: Bool { tcpSocket.isConnected }
4948

49+
/// TCP packet framing mode.
50+
public let framingMode: OSCTCPFramingMode
51+
5052
/// Initialize with a remote hostname and UDP port.
5153
///
5254
/// > Note:

Sources/OSCKit/TCP/Server/OSCTCPServer.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ public final class OSCTCPServer {
2626
let tcpSocket: GCDAsyncSocket
2727
let tcpDelegate: OSCTCPServerDelegate
2828
let queue: DispatchQueue
29-
let framingMode: OSCTCPFramingMode
3029
var receiveHandler: OSCHandlerBlock?
3130
var notificationHandler: NotificationHandlerBlock?
3231

@@ -48,6 +47,9 @@ public final class OSCTCPServer {
4847
/// Returns a boolean indicating whether the OSC server has been started.
4948
public private(set) var isStarted: Bool = false
5049

50+
/// TCP packet framing mode.
51+
public let framingMode: OSCTCPFramingMode
52+
5153
/// Initialize with a remote hostname and UDP port.
5254
///
5355
/// > Note:

0 commit comments

Comments
 (0)