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

Method connected_cb

src/torcontrol.cpp:554–560  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

552}
553
554void 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
562void TorController::disconnected_cb(TorControlConnection& _conn)
563{

Callers

nothing calls this directly

Calls 1

CommandMethod · 0.45

Tested by

no test coverage detected