mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-02-27 17:43:58 +08:00
* improve segment downloading dd * continue * log retrying * check aborting_ in loop * std::endl * log download information * cleanup * continue * dd * move download to seperate funciton * simplify logging * continue * guard ts * cleanup * typo
11 lines
347 B
C++
11 lines
347 B
C++
#pragma once
|
|
|
|
#include <atomic>
|
|
#include <ostream>
|
|
#include <string>
|
|
|
|
void precise_nano_sleep(long sleep_ns);
|
|
bool readBZ2File(const std::string_view file, std::ostream &stream);
|
|
void enableHttpLogging(bool enable);
|
|
bool httpMultiPartDownload(const std::string &url, const std::string &target_file, int parts, std::atomic<bool> *abort = nullptr);
|