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)
I have read many times the request for a "Wait For" with the addition of a timeout. This class is an attempt to implement that functionality. It is a B4X class, in the sense that it can be used with B4A, B4J and B4i; after all it uses only one B4XView which is completely optional and almost...