wavelength 1.0.0
Loading...
Searching...
No Matches
fileclosetask.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 FileCloseTask : public NetTask {
16public:
23 ~FileCloseTask() override = default;
24
32 explicit FileCloseTask(String *pName) : mName(pName) {
33 }
34
47 static void
48 OnResponse(int nConnection, int nType, int nSize, const rtMediusFileResponse *pResponse);
49
50protected:
57 void OnStart() override;
58
59private:
60 String *mName;
61};
~FileCloseTask() override=default
Destroy the object.
void OnStart() override
Send the request.
FileCloseTask(String *pName)
Construct a step.
Definition fileclosetask.h:32
static void OnResponse(int nConnection, int nType, int nSize, const rtMediusFileResponse *pResponse)
Finish the step the response is tagged with.
NetTask()
Construct a task outside any NetMultiTask.
Definition nettask.h:24
Growable text buffer that is also a PrnStream.
Definition string.h:19