MCPcopy Create free account
hub / github.com/JosephP91/curlcpp / add

Method add

src/curl_multi.cpp:46–53  ·  view source on GitHub ↗

Implementation of add method for easy handlers.

Source from the content-addressed store, hash-verified

44
45// Implementation of add method for easy handlers.
46void curl_multi::add(const curl_easy &easy) {
47 const CURLMcode code = curl_multi_add_handle(this->curl.get(),easy.get_curl());
48 if (code == CURLM_OK) {
49 handles[easy.get_curl()] = (curl_easy*)&easy;
50 } else {
51 throw curl_multi_exception(code,__FUNCTION__);
52 }
53}
54
55// Implementation of add method for a vector of easy handlers.
56void curl_multi::add(const std::vector<curl_easy> &easy_handlers) {

Callers

nothing calls this directly

Calls 3

getMethod · 0.45
get_curlMethod · 0.45

Tested by

no test coverage detected