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

Method HandleSessionRequestReceived

libi2pd/NTCP2.cpp:706–722  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

704 }
705
706 void NTCP2Session::HandleSessionRequestReceived (const boost::system::error_code& ecode, std::size_t bytes_transferred)
707 {
708 if (ecode)
709 {
710 LogPrint (eLogWarning, "NTCP2: SessionRequest read error: ", ecode.message ());
711 Terminate ();
712 }
713 else
714 {
715 m_Establisher->CreateEphemeralKey ();
716 boost::asio::post (m_Server.GetEstablisherService (),
717 [s = shared_from_this (), bytes_transferred] ()
718 {
719 s->ProcessSessionRequest (bytes_transferred);;
720 });
721 }
722 }
723
724 void NTCP2Session::ProcessSessionRequest (size_t len, bool first)
725 {

Callers

nothing calls this directly

Calls 3

LogPrintFunction · 0.85
CreateEphemeralKeyMethod · 0.80
ProcessSessionRequestMethod · 0.45

Tested by

no test coverage detected