llarp/dns/sd_platform.hpp

Namespaces

Name
llarp
[crypto.hpp]
llarp::dns
llarp::dns::sd

Classes

Name
class llarp::dns::sd::Platform
a dns platform that sets dns via systemd resolved

Source code

#pragma once
#include "platform.hpp"

#include <llarp/constants/platform.hpp>
#include <type_traits>

namespace llarp::dns
{
  namespace sd
  {
    class Platform : public I_Platform
    {
     public:
      virtual ~Platform() = default;

      void
      set_resolver(unsigned int if_index, llarp::SockAddr dns, bool global) override;
    };
  }  // namespace sd
  using SD_Platform_t =
      std::conditional_t<llarp::platform::has_systemd, sd::Platform, Null_Platform>;
}  // namespace llarp::dns

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