lldb-rpc-server_2022-01-01-210548_Aamors-MacBook-Pro.crash
Post
Replies
Boosts
Views
Activity
This is the code to send Data over tcp connection
var data = try! Data(contentsOf: uri)
self.con!.send(content:data,contentContext:.finalMessage,isComplete:false,completion:.contentProcessed({ e in
if let error = e{
print("file send error = \(error)")
}else{
print("------ file send Completed -------")
DispatchQueue.main.sync {
self.delegate?.fileSentComplete()
}
}
}))