diff options
Diffstat (limited to '')
-rw-r--r-- | src/curl_looper.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/curl_looper.cc b/src/curl_looper.cc index 27e41fe..db97c40 100644 --- a/src/curl_looper.cc +++ b/src/curl_looper.cc @@ -108,6 +108,8 @@ curl_url_strerror(CURLUcode error) } # endif +namespace { + struct curl_request_eq { explicit curl_request_eq(const std::string& name) : cre_name(name){}; @@ -125,6 +127,8 @@ struct curl_request_eq { const std::string& cre_name; }; +} // namespace + int curl_request::debug_cb( CURL* handle, curl_infotype type, char* data, size_t size, void* userp) @@ -187,6 +191,11 @@ curl_request::complete(CURLcode result) return -1; } +curl_looper::curl_looper() : cl_curl_multi(curl_multi_cleanup) +{ + this->cl_curl_multi.reset(curl_multi_init()); +} + void curl_looper::loop_body() { |