MCPcopy Create free account
hub / github.com/Vhonowslend/StreamFX-Public / set_write_callback

Method set_write_callback

source/util/util-curl.cpp:179–185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177}
178
179CURLcode streamfx::util::curl::set_write_callback(curl_io_callback_t cb)
180{
181 _write_callback = std::move(cb);
182 if (CURLcode res = curl_easy_setopt(_curl, CURLOPT_WRITEDATA, this); res != CURLE_OK)
183 return res;
184 return curl_easy_setopt(_curl, CURLOPT_WRITEFUNCTION, &write_helper);
185}
186
187CURLcode streamfx::util::curl::set_xferinfo_callback(curl_xferinfo_callback_t cb)
188{

Callers 1

taskMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected