| 578 | } |
| 579 | |
| 580 | void 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 | |
| 591 | fs::path TorController::GetPrivateKeyFile() |
| 592 | { |