MCPcopy Create free account
hub / github.com/alibaba/CicadaPlayer / initConnection

Method initConnection

framework/data_source/curl/curl_data_source2.cpp:58–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56#define SEEK_USE_NEW_CONNECTION 0
57
58CURLConnection2 *CurlDataSource2::initConnection()
59{
60 auto *pHandle = new CURLConnection2(&mConfig, mMulti, nullptr);
61 pHandle->setSSLBackEnd(CURLShareInstance::Instance()->getSslbakcend());
62 pHandle->setSource(mLocation, headerList);
63 pHandle->setPost(mBPost, mPostSize, mPostData);
64 return pHandle;
65}
66
67int CurlDataSource2::curl_connect(CURLConnection2 *pConnection, int64_t filePos)
68{

Callers

nothing calls this directly

Calls 4

getSslbakcendMethod · 0.80
setSourceMethod · 0.80
setSSLBackEndMethod · 0.45
setPostMethod · 0.45

Tested by

no test coverage detected