llarp::dns::QueryJob
non complex implementation of QueryJob_Base for use in things that only ever called on the mainloop thread
#include <server.hpp>
Inherits from llarp::dns::QueryJob_Base, std::enable_shared_from_this< QueryJob >
Public Functions
| Name | |
|---|---|
| QueryJob(std::shared_ptr< PacketSource_Base > source, const Message & query, const SockAddr & to_, const SockAddr & from_) | |
| virtual void | SendReply(llarp::OwnedBuffer replyBuf) override send a raw buffer back to the querier |
Additional inherited members
Public Functions inherited from llarp::dns::QueryJob_Base
| Name | |
|---|---|
| QueryJob_Base(Message query) | |
| virtual | ~QueryJob_Base() =default |
| Message & | Underlying() |
| const Message & | Underlying() const |
| void | Cancel() cancel this operation and inform anyone who cares |
Protected Attributes inherited from llarp::dns::QueryJob_Base
| Name | |
|---|---|
| Message | m_Query the original dns query |
| std::atomic_flag | m_Done True if we've sent a reply (including via a call to cancel) |
Public Functions Documentation
function QueryJob
inline explicit QueryJob(
std::shared_ptr< PacketSource_Base > source,
const Message & query,
const SockAddr & to_,
const SockAddr & from_
)
function SendReply
inline virtual void SendReply(
llarp::OwnedBuffer replyBuf
) override
send a raw buffer back to the querier
Reimplements: llarp::dns::QueryJob_Base::SendReply
Updated on 2026-01-10 at 22:49:45 +0000