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

Method InsertSession

libi2pd_client/I2CP.cpp:1203–1212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1201 }
1202
1203 bool I2CPServer::InsertSession (std::shared_ptr<I2CPSession> session)
1204 {
1205 if (!session) return false;
1206 if (!m_Sessions.insert({session->GetSessionID (), session}).second)
1207 {
1208 LogPrint (eLogError, "I2CP: Duplicate session id ", session->GetSessionID ());
1209 return false;
1210 }
1211 return true;
1212 }
1213
1214 void I2CPServer::RemoveSession (uint16_t sessionID)
1215 {

Callers 1

Calls 2

LogPrintFunction · 0.85
GetSessionIDMethod · 0.80

Tested by

no test coverage detected