llarp::I_RCGossiper

Inherited by llarp::RCGossiper

Public Types

Name
using Duration_t Time_t

Public Functions

Name
virtual ~I_RCGossiper() =default
virtual bool GossipRC(const RouterContact & rc) =0
try goissping RC return false if we hit a cooldown for this rc return true if we gossiped this rc to at least 1 peer
virtual void Decay(Time_t now) =0
virtual bool ShouldGossipOurRC(Time_t now) const =0
return true if we should gossip our RC now
virtual bool IsOurRC(const RouterContact & rc) const =0
return true if that rc is owned by us
virtual void Forget(const RouterID & router) =0
forget the replay filter entry given pubkey
virtual TimePoint_t NextGossipAt() const =0
returns the time point when we will send our next gossip at
virtual std::optional< TimePoint_t > LastGossipAt() const =0
returns the time point when we sent our last gossip at or nullopt if we never did

Public Types Documentation

using Time_t

using llarp::I_RCGossiper::Time_t =  Duration_t;

Public Functions Documentation

function ~I_RCGossiper

virtual ~I_RCGossiper() =default

function GossipRC

virtual bool GossipRC(
    const RouterContact & rc
) =0

try goissping RC return false if we hit a cooldown for this rc return true if we gossiped this rc to at least 1 peer

Reimplemented by: llarp::RCGossiper::GossipRC

function Decay

virtual void Decay(
    Time_t now
) =0

Reimplemented by: llarp::RCGossiper::Decay

function ShouldGossipOurRC

virtual bool ShouldGossipOurRC(
    Time_t now
) const =0

return true if we should gossip our RC now

Reimplemented by: llarp::RCGossiper::ShouldGossipOurRC

function IsOurRC

virtual bool IsOurRC(
    const RouterContact & rc
) const =0

return true if that rc is owned by us

Reimplemented by: llarp::RCGossiper::IsOurRC

function Forget

virtual void Forget(
    const RouterID & router
) =0

forget the replay filter entry given pubkey

Reimplemented by: llarp::RCGossiper::Forget

function NextGossipAt

virtual TimePoint_t NextGossipAt() const =0

returns the time point when we will send our next gossip at

Reimplemented by: llarp::RCGossiper::NextGossipAt

function LastGossipAt

virtual std::optional< TimePoint_t > LastGossipAt() const =0

returns the time point when we sent our last gossip at or nullopt if we never did

Reimplemented by: llarp::RCGossiper::LastGossipAt


Updated on 2026-01-10 at 22:49:45 +0000