BOB ping command

This commit is contained in:
orignal 2025-08-19 15:21:44 -04:00
parent 1c42ba85ba
commit 39069e0bd6
5 changed files with 96 additions and 1 deletions

View file

@ -181,6 +181,7 @@ namespace garlic
{
if (!m_Destination) m_Destination.reset (new i2p::data::IdentHash (dest));
}
const i2p::data::IdentHash * GetDestinationPtr () const { return m_Destination ? m_Destination.get () : nullptr; }; // for pongs
bool CheckExpired (uint64_t ts); // true is expired
bool CanBeRestarted (uint64_t ts) const { return ts > m_SessionCreatedTimestamp + ECIESX25519_RESTART_TIMEOUT; }
bool IsInactive (uint64_t ts) const { return ts > m_LastActivityTimestamp + ECIESX25519_INACTIVITY_TIMEOUT && CanBeRestarted (ts); }