3#include <librtmedius.h>
28 : mName(pName), mBuffer(ppBuffer), mSize(pnSize), mReceived(0) {
46 const rtMediusFileTransferResponse *pResponse);
75 void Append(
const rtMediusFileTransferResponse *pResponse,
int nBytes);
void OnStart() override
Send the request.
static void OnResponse(int nConnection, int nType, int nSize, const rtMediusFileTransferResponse *pResponse)
Copy a part of the file, and mark the step done after the last part.
void OnPoll() override
Report the estimated progress, and finish once the last part arrived and the estimate passes 99 perce...
FileDownloadTask(String *pName, char **ppBuffer, int *pnSize)
Construct a step.
Definition filedownloadtask.h:27
NetTask()
Construct a task outside any NetMultiTask.
Definition nettask.h:24
Growable text buffer that is also a PrnStream.
Definition string.h:19