wavelength 1.0.0
Loading...
Searching...
No Matches
filecreatetask.h
Go to the documentation of this file.
1#pragma once
2
3#include <librtmedius.h>
4
5#include "netflow/nettask.h"
6
7class String;
8
15class FileCreateTask : public NetTask {
16public:
25 FileCreateTask(String *pName, int *pnSize) : mName(pName), mSize(pnSize) {
26 }
27
40 static void
41 OnResponse(int nConnection, int nType, int nSize, const rtMediusFileResponse *pResponse);
42
43protected:
50 void OnStart() override;
51
52private:
53 String *mName;
54 int *mSize;
55};
FileCreateTask(String *pName, int *pnSize)
Construct a step.
Definition filecreatetask.h:25
static void OnResponse(int nConnection, int nType, int nSize, const rtMediusFileResponse *pResponse)
Finish the step the response is tagged with.
void OnStart() override
Send the request, with every access for every account.
NetTask()
Construct a task outside any NetMultiTask.
Definition nettask.h:24
Growable text buffer that is also a PrnStream.
Definition string.h:19