llarp::service::LNSLookupTracker
tracks and manages consensus of lns names we fetch from the network
#include <lns_tracker.hpp>
Public Types
| Name | |
|---|---|
| using std::variant< Address, RouterID > | Addr_t |
Public Functions
| Name | |
|---|---|
| std::function< void(std::optional< Addr_t >)> | MakeResultHandler(std::string name, std::size_t numPeers, std::function< void(std::optional< Addr_t >)> resultHandler) make a function that will handle consensus of an lns request name is the name we are requesting numPeers is the number of peers we asked resultHandler is a function that we are wrapping that will handle the final result |
Public Types Documentation
using Addr_t
using llarp::service::LNSLookupTracker::Addr_t = std::variant<Address, RouterID>;
Public Functions Documentation
function MakeResultHandler
std::function< void(std::optional< Addr_t >)> MakeResultHandler(
std::string name,
std::size_t numPeers,
std::function< void(std::optional< Addr_t >)> resultHandler
)
make a function that will handle consensus of an lns request name is the name we are requesting numPeers is the number of peers we asked resultHandler is a function that we are wrapping that will handle the final result
Updated on 2026-01-10 at 22:49:45 +0000