| 552 | } |
| 553 | |
| 554 | void TorController::connected_cb(TorControlConnection& _conn) |
| 555 | { |
| 556 | reconnect_timeout = RECONNECT_TIMEOUT_START; |
| 557 | // First send a PROTOCOLINFO command to figure out what authentication is expected |
| 558 | if (!_conn.Command("PROTOCOLINFO 1", std::bind(&TorController::protocolinfo_cb, this, std::placeholders::_1, std::placeholders::_2))) |
| 559 | LogPrintf("tor: Error sending initial protocolinfo command\n"); |
| 560 | } |
| 561 | |
| 562 | void TorController::disconnected_cb(TorControlConnection& _conn) |
| 563 | { |