Electroneum
download.cpp File Reference
#include <string>
#include <atomic>
#include <boost/filesystem.hpp>
#include <boost/thread/thread.hpp>
#include "file_io_utils.h"
#include "net/http_client.h"
#include "download.h"
Include dependency graph for download.cpp:

Go to the source code of this file.

Classes

struct  tools::download_thread_control
 

Namespaces

 tools
 Various Tools.
 

Macros

#define ELECTRONEUM_DEFAULT_LOG_CATEGORY   "net.dl"
 

Functions

bool tools::download (const std::string &path, const std::string &url, std::function< bool(const std::string &, const std::string &, size_t, ssize_t)> cb)
 
download_async_handle tools::download_async (const std::string &path, const std::string &url, std::function< void(const std::string &, const std::string &, bool)> result, std::function< bool(const std::string &, const std::string &, size_t, ssize_t)> progress)
 
bool tools::download_finished (const download_async_handle &control)
 
bool tools::download_error (const download_async_handle &control)
 
bool tools::download_wait (const download_async_handle &control)
 
bool tools::download_cancel (const download_async_handle &control)
 

Macro Definition Documentation

◆ ELECTRONEUM_DEFAULT_LOG_CATEGORY

#define ELECTRONEUM_DEFAULT_LOG_CATEGORY   "net.dl"

Definition at line 39 of file download.cpp.