Skip to content

Commit

Permalink
added prints
Browse files Browse the repository at this point in the history
  • Loading branch information
CryptoSax committed Sep 19, 2021
1 parent dbdf837 commit afc3abf
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
},
{
Expand All @@ -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"
}
}
]
Expand Down
3 changes: 3 additions & 0 deletions Sources/Transmission/Connection.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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()
Expand Down
3 changes: 3 additions & 0 deletions Sources/TransmissionLinux/SocketConnection.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit afc3abf

Please sign in to comment.