MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / IsConnected

Method IsConnected

src/torcontrol.cpp:120–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118}
119
120bool TorControlConnection::IsConnected() const
121{
122 if (!m_sock) return false;
123 std::string errmsg;
124 const bool connected{m_sock->IsConnected(errmsg)};
125 if (!connected && !errmsg.empty()) {
126 LogDebug(BCLog::TOR, "Connection check failed: %s", errmsg);
127 }
128 return connected;
129}
130
131bool TorControlConnection::WaitForData(std::chrono::milliseconds timeout)
132{

Callers 1

ThreadControlMethod · 0.45

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected