#include <XrdHttpTpcPool.hh>
|
| static std::string | GenerateIdentifier (const std::string &label, const char *vorg, const int scitag) |
| |
Definition at line 40 of file XrdHttpTpcPool.hh.
◆ TPCRequest()
| TPC::TPCRequestManager::TPCRequest::TPCRequest |
( |
const std::string & |
label, |
|
|
const int |
scitag, |
|
|
CURL * |
handle |
|
) |
| |
|
inline |
Definition at line 42 of file XrdHttpTpcPool.hh.
42 : m_label(label), m_scitag(scitag), m_curl(handle) {}
◆ Cancel()
| void TPCRequestManager::TPCRequest::Cancel |
( |
| ) |
|
Definition at line 318 of file XrdHttpTpcPool.cc.
318 { m_active.store(
false, std::memory_order_relaxed); }
◆ GenerateIdentifier()
| std::string TPCRequestManager::TPCRequest::GenerateIdentifier |
( |
const std::string & |
label, |
|
|
const char * |
vorg, |
|
|
const int |
scitag |
|
) |
| |
|
static |
◆ GetHandle()
| CURL * TPCRequestManager::TPCRequest::GetHandle |
( |
| ) |
const |
◆ GetLabel()
| std::string TPCRequestManager::TPCRequest::GetLabel |
( |
| ) |
const |
◆ GetRemoteConnDesc()
| std::string TPCRequestManager::TPCRequest::GetRemoteConnDesc |
( |
| ) |
|
Definition at line 377 of file XrdHttpTpcPool.cc.
378 std::unique_lock<std::mutex> lock(m_conn_mutex);
◆ GetScitag()
| int TPCRequestManager::TPCRequest::GetScitag |
( |
| ) |
const |
◆ IsActive()
| bool TPCRequestManager::TPCRequest::IsActive |
( |
| ) |
const |
Definition at line 324 of file XrdHttpTpcPool.cc.
324 {
return m_active.load(std::memory_order_relaxed); }
◆ SetActive()
| void TPCRequestManager::TPCRequest::SetActive |
( |
| ) |
|
Definition at line 316 of file XrdHttpTpcPool.cc.
316 { m_active.store(
true, std::memory_order_relaxed); }
◆ SetDone()
| void TPCRequestManager::TPCRequest::SetDone |
( |
int |
status, |
|
|
const std::string & |
msg |
|
) |
| |
◆ UpdateRemoteConnDesc()
| void TPCRequestManager::TPCRequest::UpdateRemoteConnDesc |
( |
| ) |
|
Definition at line 343 of file XrdHttpTpcPool.cc.
344 #if LIBCURL_VERSION_NUM >= 0x071500
346 const char *curl_ip =
nullptr;
347 CURLcode rc = curl_easy_getinfo(m_curl, CURLINFO_PRIMARY_IP, &curl_ip);
348 if (rc != CURLE_OK || !curl_ip) {
353 rc = curl_easy_getinfo(m_curl, CURLINFO_PRIMARY_PORT, &curl_port);
354 if (rc != CURLE_OK || curl_port == 0) {
360 std::stringstream ss;
361 if (strchr(curl_ip,
':') ==
nullptr) {
362 ss <<
"tcp:" << curl_ip <<
":" << curl_port;
364 ss <<
"tcp:[" << curl_ip <<
"]:" << curl_port;
368 std::unique_lock<std::mutex> lock(m_conn_mutex);
369 m_conn_list = ss.str();
◆ WaitFor()
| int TPCRequestManager::TPCRequest::WaitFor |
( |
std::chrono::steady_clock::duration |
dur | ) |
|
Definition at line 389 of file XrdHttpTpcPool.cc.
390 std::unique_lock<std::mutex> lock(m_mutex);
391 m_cv.wait_for(lock, dur, [&] {
return m_status >= 0; });
The documentation for this class was generated from the following files: