diff --git a/Package.resolved b/Package.resolved index 3dc13eb..b71ed5f 100644 --- a/Package.resolved +++ b/Package.resolved @@ -24,8 +24,8 @@ "repositoryURL": "https://github.com/OperatorFoundation/Datable", "state": { "branch": null, - "revision": "aff3113e993217cae43180df9286eaa481682cce", - "version": "3.0.4" + "revision": "31b055da961f794f1a2ce01b5521ee650815a9c9", + "version": "3.0.6" } }, { @@ -42,8 +42,8 @@ "repositoryURL": "https://github.com/OperatorFoundation/Transport", "state": { "branch": null, - "revision": "b5ac00eac45a2e57923540c1fd80c734fe160ffe", - "version": "2.3.5" + "revision": "91dca4e691a9d2a6d38acd9b6dd64a1240da85f1", + "version": "2.3.6" } } ] diff --git a/Sources/Transmission/Connection.swift b/Sources/Transmission/Connection.swift index 1fbd773..c329190 100644 --- a/Sources/Transmission/Connection.swift +++ b/Sources/Transmission/Connection.swift @@ -74,6 +74,7 @@ public class Connection public func read(size: Int) -> Data? { + print("TransmissionLinux read called: \(#file), \(#line)") var result: Data? self.readLock.enter() @@ -102,12 +103,14 @@ public class Connection public func write(string: String) -> Bool { + print("TransmissionLinux write called: \(#file), \(#line)") let data = string.data return write(data: data) } public func write(data: Data) -> Bool { + print("TransmissionLinux write called: \(#file), \(#line)") var success = false self.writeLock.enter() diff --git a/Sources/TransmissionLinux/SocketConnection.swift b/Sources/TransmissionLinux/SocketConnection.swift index ff21e9e..ebc447f 100644 --- a/Sources/TransmissionLinux/SocketConnection.swift +++ b/Sources/TransmissionLinux/SocketConnection.swift @@ -34,6 +34,7 @@ public class SocketConnection: Connection public func read(size: Int) -> Data? { + print("TransmissionLinux read called: \(#file), \(#line)") if size == 0 { return nil @@ -69,12 +70,14 @@ public class SocketConnection: Connection public func write(string: String) -> Bool { + print("TransmissionLinux write called: \(#file), \(#line)") let data = string.data return write(data: data) } public func write(data: Data) -> Bool { + print("TransmissionLinux write called: \(#file), \(#line)") do { try self.socket.write(from: data)