llarp::dht
Classes
Types
| Name | |
|---|---|
| using std::shared_ptr< const GotIntroMessage > | GotIntroMessage_constptr |
| using std::shared_ptr< const GotRouterMessage > | GotRouterMessage_constptr |
Functions
| Name | |
|---|---|
| std::unique_ptr< AbstractContext > | makeContext() |
| IMessage::Ptr_t | DecodeMessage(const Key_t & from, llarp_buffer_t * buf, bool relayed =false) |
| bool | DecodeMesssageList(Key_t from, llarp_buffer_t * buf, std::vector< IMessage::Ptr_t > & dst, bool relayed =false) |
Attributes
| Name | |
|---|---|
| constexpr size_t | IntroSetRelayRedundancy number of routers to publish to |
| constexpr size_t | IntroSetRequestsPerRelay number of dht locations handled per relay |
| constexpr size_t | IntroSetStorageRedundancy |
| constexpr size_t | MAX_MSG_SIZE |
Types Documentation
using GotIntroMessage_constptr
using llarp::dht::GotIntroMessage_constptr = typedef std::shared_ptr<const GotIntroMessage>;
using GotRouterMessage_constptr
using llarp::dht::GotRouterMessage_constptr = typedef std::shared_ptr<const GotRouterMessage>;
Functions Documentation
function makeContext
std::unique_ptr< AbstractContext > makeContext()
function DecodeMessage
IMessage::Ptr_t DecodeMessage(
const Key_t & from,
llarp_buffer_t * buf,
bool relayed =false
)
function DecodeMesssageList
bool DecodeMesssageList(
Key_t from,
llarp_buffer_t * buf,
std::vector< IMessage::Ptr_t > & dst,
bool relayed =false
)
Attributes Documentation
variable IntroSetRelayRedundancy
static constexpr size_t IntroSetRelayRedundancy = 2;
number of routers to publish to
variable IntroSetRequestsPerRelay
static constexpr size_t IntroSetRequestsPerRelay = 2;
number of dht locations handled per relay
variable IntroSetStorageRedundancy
static constexpr size_t IntroSetStorageRedundancy =
(IntroSetRelayRedundancy * IntroSetRequestsPerRelay);
variable MAX_MSG_SIZE
constexpr size_t MAX_MSG_SIZE = 2048;
Updated on 2026-01-10 at 22:49:45 +0000