MCPcopy Create free account
hub / github.com/GrapheneCt/NetStream / Probe

Method Probe

NetStream/source/browsers/ftp_server_browser.cpp:68–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66}
67
68bool FtpServerBrowser::Probe()
69{
70 curl_easy_setopt(m_curl, CURLOPT_NOBODY, 1L);
71
72 CURLcode ret = curl_easy_perform(m_curl);
73 curl_easy_setopt(m_curl, CURLOPT_NOBODY, 0L);
74 curl_easy_setopt(m_curl, CURLOPT_HTTPGET, 1L);
75
76 if (ret != CURLE_OK)
77 {
78 return false;
79 }
80
81 return true;
82}
83
84bool FtpServerBrowser::IsAtRoot(string *current)
85{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected