27 #ifndef DOWNLOADER_H__
28 #define DOWNLOADER_H__
54 virtual void on_chunk(
const char* buff,
unsigned bytes);
62 std::string error_msg;
Handle downloading of files from remote urls.
bool download(std::ostream *stream)
Download url into stream, return false on errors.
long get_filesize()
Try to get remote filesize, return 0 on failure.
std::string last_error()
Last Curl error message.
virtual void on_chunk(const char *buff, unsigned bytes)
Called when given bytes has been transferred from remote.
int last_errorcode()
Last error code, a CURLE return code.