let credential = URLCredential(user: user, password: password, persistence: URLCredential.Persistence.forSession)
client = AMSMB2(url: self.serverURL, credential: credential)!
// AMSMB2 can handle queueing connection requests
client?.connectShare(name: self.share) { error in
if let error = error {
print("SMBClient ConnectShare",error);
}
}
The above is the code for initializing and connecting SMB. I want to know which thread this is running on? How can I set it to run on other threads? Can I use multiple threads to read files?
The above is the code for initializing and connecting SMB. I want to know which thread this is running on? How can I set it to run on other threads? Can I use multiple threads to read files?