MCPcopy Create free account
hub / github.com/PurpleI2P/i2pd / AddSession

Method AddSession

libi2pd/SSU2.cpp:497–509  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

495 }
496
497 bool SSU2Server::AddSession (std::shared_ptr<SSU2Session> session)
498 {
499 if (session)
500 {
501 if (m_Sessions.emplace (session->GetConnID (), session).second)
502 {
503 if (session->GetState () != eSSU2SessionStatePeerTest)
504 AddSessionByRouterHash (session);
505 return true;
506 }
507 }
508 return false;
509 }
510
511 void SSU2Server::RemoveSession (uint64_t connID)
512 {

Callers 6

IntroduceMethod · 0.45
SendPeerTestMethod · 0.45
ProcessSessionRequestMethod · 0.45
ProcessSessionCreatedMethod · 0.45
HandleRelayIntroMethod · 0.45
HandlePeerTestMethod · 0.45

Calls 2

GetConnIDMethod · 0.80
GetStateMethod · 0.45

Tested by

no test coverage detected