Electroneum
download.h File Reference
#include <string>
Include dependency graph for download.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 tools
 Various Tools.
 

Typedefs

typedef std::shared_ptr< download_thread_control > tools::download_async_handle
 

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_error (const download_async_handle &control)
 
bool tools::download_finished (const download_async_handle &control)
 
bool tools::download_wait (const download_async_handle &control)
 
bool tools::download_cancel (const download_async_handle &control)