global peer tests

This commit is contained in:
orignal 2015-02-25 15:26:06 -05:00
parent eee968ce56
commit e250628174
3 changed files with 20 additions and 1 deletions

10
SSU.cpp
View file

@ -461,6 +461,16 @@ namespace transport
m_Introducers = newList;
ScheduleIntroducersUpdateTimer ();
}
}
void SSUServer::NewPeerTest (uint32_t nonce)
{
m_PeerTests[nonce] = i2p::util::GetMillisecondsSinceEpoch ();
}
void SSUServer::PeerTestComplete (uint32_t nonce)
{
m_PeerTests.erase (nonce);
}
}
}