Skip to content

Can download file with http url. Support resuming downloading from last break point.

Notifications You must be signed in to change notification settings

tillmanchen2015/FileDownload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FileDownload - a library downloading file from breakpoint

It's used for downloading http file with C++. You can resume downloading from last break point. I have referred https://github.com/junyux/HttpClient and re-wrapped it. Pass testing in windows and ubuntu.

api: FileDownload\FileDownload\include\downloadAPI.h

demo: D:\src\FileDownload\test\main.cpp

std::shared_ptr<talFD::IDownloadFile> p1 = std::shared_ptr<talFD::IDownloadFile>(talFD::get_interface());
talFD::errorCode ec;
ec = p1->initialize(url1, savedir, progress_func);
if (ec != talFD::errorCode::initialize_finish)

{

    printf("Initilize error: %d\n", ec);
 	return -1;
}
p1->start_download();

About

Can download file with http url. Support resuming downloading from last break point.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published