DDraceNetwork Docs
|
Public Member Functions | |
CUpdaterFetchTask (CUpdater *pUpdater, const char *pFile, const char *pDestPath) | |
Public Member Functions inherited from CHttpRequest | |
CHttpRequest (const char *pUrl) | |
virtual | ~CHttpRequest () |
void | Timeout (CTimeout Timeout) |
void | MaxResponseSize (int64_t MaxResponseSize) |
void | IfModifiedSince (int64_t IfModifiedSince) |
void | LogProgress (HTTPLOG LogProgress) |
void | IpResolve (IPRESOLVE IpResolve) |
void | FailOnErrorStatus (bool FailOnErrorStatus) |
void | WriteToFile (IStorage *pStorage, const char *pDest, int StorageType) |
void | ExpectSha256 (const SHA256_DIGEST &Sha256) |
void | Head () |
void | Post (const unsigned char *pData, size_t DataLength) |
void | PostJson (const char *pJson) |
void | Header (const char *pNameColonValue) |
void | HeaderString (const char *pName, const char *pValue) |
void | HeaderInt (const char *pName, int Value) |
const char * | Dest () |
double | Current () const |
double | Size () const |
int | Progress () const |
EHttpState | State () const |
bool | Done () const |
void | Abort () |
void | Wait () |
void | Result (unsigned char **ppResult, size_t *pResultLength) const |
json_value * | ResultJson () const |
const SHA256_DIGEST & | ResultSha256 () const |
int | StatusCode () const |
std::optional< int64_t > | ResultAgeSeconds () const |
std::optional< int64_t > | ResultLastModified () const |
Protected Member Functions | |
void | OnCompletion (EHttpState State) override |
virtual void | OnProgress () |
virtual void | OnCompletion (EHttpState State) |
Private Member Functions | |
void | OnProgress () override |
Private Attributes | |
char | m_aBuf [256] |
char | m_aBuf2 [256] |
CUpdater * | m_pUpdater |
CUpdaterFetchTask::CUpdaterFetchTask | ( | CUpdater * | pUpdater, |
const char * | pFile, | ||
const char * | pDestPath | ||
) |
|
overrideprotectedvirtual |
Reimplemented from CHttpRequest.
|
overrideprivatevirtual |
Reimplemented from CHttpRequest.
|
private |
|
private |
|
private |