Skip to content

Commit 7b48a88

Browse files
committed
translate eng to kor
1 parent abd36ab commit 7b48a88

2 files changed

Lines changed: 83 additions & 84 deletions

File tree

example/network/downloader/main.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
#include "j2_library/j2_library.hpp"
55

6+
// 진행 상태를 콘솔에 출력하는 콜백 클래스
67
class console_progress : public j2::network::downloader::multipart_progress_callback
78
{
89
public:
@@ -31,11 +32,11 @@ int main()
3132

3233
downloader.set_delete_partial_file_on_fail(true); // 다운로드 실패 시 임시 파일 삭제
3334

34-
std::vector<std::string> files;
35-
std::string error;
36-
3735
std::string url = "http://127.0.0.1:18080";
38-
std::string output_dir = ".";
36+
std::string output_dir = "."; // 현재 디렉토리에 다운로드
37+
38+
std::vector<std::string> files; // 다운로드된 파일 경로를 저장할 벡터
39+
std::string error; // 오류 메시지를 저장할 문자열
3940

4041
// 멀티파트 다운로드 시도
4142
if (!downloader.download_multipart(url, output_dir, files, &error))

0 commit comments

Comments
 (0)