Thanks for your reply. Yes, we can make use of this callback to know the progress updateInfo. I tried to use this in uploadfilethread.
I am confuse about the context pointer in the arg list that OpenStreamProgressCallback() takes.
what’s the meaning and use for context pointer?
I need to do multiple files uploading and get the progress info for each of them. I wonder if context could provide the uploading files’ info, and I can make use of it and differentiate the different progress info.
the function definition is as follows:
typedef bool() URL::OpenStreamProgressCallback(void *context, int bytesSent, int totalBytes)