| 681 | } |
| 682 | |
| 683 | void TorController::connected_cb(TorControlConnection& _conn) |
| 684 | { |
| 685 | reconnect_timeout = RECONNECT_TIMEOUT_START; |
| 686 | // First send a PROTOCOLINFO command to figure out what authentication is expected |
| 687 | if (!_conn.Command("PROTOCOLINFO 1", boost::bind(&TorController::protocolinfo_cb, this, _1, _2))) |
| 688 | LogPrintf("tor: Error sending initial protocolinfo command\n"); |
| 689 | } |
| 690 | |
| 691 | void TorController::disconnected_cb(TorControlConnection& _conn) |
| 692 | { |