Implementation of add method for easy handlers.
| 44 | |
| 45 | // Implementation of add method for easy handlers. |
| 46 | void 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. |
| 56 | void curl_multi::add(const std::vector<curl_easy> &easy_handlers) { |
nothing calls this directly
no test coverage detected