llarp::dns::Multi_Platform
a collection of dns platforms that are tried in order when setting dns
#include <platform.hpp>
Inherits from llarp::dns::I_Platform
Public Functions
| Name | |
|---|---|
| ~Multi_Platform() override =default | |
| void | add_impl(std::unique_ptr< I_Platform > impl) add a platform to be owned |
| virtual void | set_resolver(unsigned int if_index, llarp::SockAddr dns, bool global) override try all owned platforms to set the resolver, throws if none of them work |
Additional inherited members
Public Functions inherited from llarp::dns::I_Platform
| Name | |
|---|---|
| virtual | ~I_Platform() =default |
Public Functions Documentation
function ~Multi_Platform
~Multi_Platform() override =default
function add_impl
void add_impl(
std::unique_ptr< I_Platform > impl
)
add a platform to be owned
function set_resolver
virtual void set_resolver(
unsigned int if_index,
llarp::SockAddr dns,
bool global
) override
try all owned platforms to set the resolver, throws if none of them work
Reimplements: llarp::dns::I_Platform::set_resolver
Updated on 2026-01-10 at 22:49:45 +0000