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

Method ServerLogin

libi2pd/NTCP2.cpp:1158–1166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1156 }
1157
1158 void NTCP2Session::ServerLogin (int version)
1159 {
1160 if (m_Establisher) m_Establisher->SetVersion (version);
1161 SetTerminationTimeout (NTCP2_ESTABLISH_TIMEOUT);
1162 SetLastActivityTimestamp (i2p::util::GetSecondsSinceEpoch ());
1163 boost::asio::async_read (m_Socket, boost::asio::buffer(m_Establisher->m_Buffer, 64), boost::asio::transfer_all (),
1164 std::bind(&NTCP2Session::HandleSessionRequestReceived, shared_from_this (),
1165 std::placeholders::_1, std::placeholders::_2));
1166 }
1167
1168 void NTCP2Session::ReceiveLength ()
1169 {

Callers 2

HandleAcceptMethod · 0.80
HandleAcceptV6Method · 0.80

Calls 2

GetSecondsSinceEpochFunction · 0.85
SetVersionMethod · 0.45

Tested by

no test coverage detected