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

Method Disconnect

src/i2p.cpp:405–416  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

403}
404
405void Session::Disconnect()
406{
407 if (m_control_sock->Get() != INVALID_SOCKET) {
408 if (m_session_id.empty()) {
409 Log("Destroying incomplete session");
410 } else {
411 Log("Destroying session %s", m_session_id);
412 }
413 }
414 m_control_sock->Reset();
415 m_session_id.clear();
416}
417} // namespace sam
418} // namespace i2p

Callers

nothing calls this directly

Calls 5

LogFunction · 0.85
GetMethod · 0.45
emptyMethod · 0.45
ResetMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected