MCPcopy Create free account
hub / github.com/bitcoinxt/bitcoinxt / MakeCurl

Function MakeCurl

src/curl_wrapper.cpp:126–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124}
125
126unique_ptr<CurlWrapper> MakeCurl() {
127 static CurlInitWrapper c;
128 if (!c.curlOK)
129 throw curl_error("", "libcurl failed to initialize");
130
131 CURL* curl = curl_easy_init();
132 if (!curl)
133 throw curl_error("", "curl_easy_init failed");
134
135 return unique_ptr<CurlWrapper>(new CurlWrapperImpl(curl));
136}

Callers 1

LoadIPDataFromWebFunction · 0.85

Calls 1

curl_errorClass · 0.85

Tested by

no test coverage detected