MCPcopy Create free account
hub / github.com/ElementsProject/elements / Reconnect

Method Reconnect

src/torcontrol.cpp:580–589  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

578}
579
580void TorController::Reconnect()
581{
582 /* Try to reconnect and reestablish if we get booted - for example, Tor
583 * may be restarting.
584 */
585 if (!conn.Connect(m_tor_control_center, std::bind(&TorController::connected_cb, this, std::placeholders::_1),
586 std::bind(&TorController::disconnected_cb, this, std::placeholders::_1) )) {
587 LogPrintf("tor: Re-initiating connection to Tor control port %s failed\n", m_tor_control_center);
588 }
589}
590
591fs::path TorController::GetPrivateKeyFile()
592{

Callers 1

reconnect_cbMethod · 0.95

Calls 1

ConnectMethod · 0.45

Tested by

no test coverage detected