Android Question SMB (Samba): Limiting the timeout when sending a file

vecino

Well-Known Member
Licensed User
Longtime User
Hello, when sending a file, for example, via http you can specify a maximum timeout.

B4X:
j.PostMultipart(cLink,mMap,llfiles) ' Upload the files and also giving the additional Values (m Map) to the uploadendpoint
j.GetRequest.Timeout = globals.kiTimeOutWait  ' <--- kiTimeOutWait = 10 s
Wait For (j) JobDone(j As HttpJob)

Is it possible to use something similar for SMB connections?
B4X:
SMB.UploadFile(globals.cDirExchange,cNameFile, globals.cRutSMB,cNameFile)
>>> SMB.Timeout = 10 <<<
Wait For SMB_UploadCompleted(Url As String, RemoteFile As String, Success As Boolean)

Thank you very much.
 

josejad

Expert
Licensed User
Longtime User
There is no timeout setting
Maybe this situation could be solved with your approach in this thread?

 
Upvote 0
Top