| 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 | { |
no test coverage detected