llarp::dns::PacketSource_Base
Inherited by llarp::dns::PacketSource_Wrapper
Public Functions
| Name | |
|---|---|
| virtual | ~PacketSource_Base() =default |
| virtual bool | WouldLoop(const SockAddr & to, const SockAddr & from) const =0 return true if traffic with source and dest addresses would cause a loop in resolution and thus should not be sent to query handlers |
| virtual void | SendTo(const SockAddr & to, const SockAddr & from, OwnedBuffer buf) const =0 send packet with src and dst address containing buf on this packet source |
| virtual void | Stop() =0 stop reading packets and end operation |
| virtual std::optional< SockAddr > | BoundOn() const =0 returns the sockaddr we are bound on if applicable |
Public Functions Documentation
function ~PacketSource_Base
virtual ~PacketSource_Base() =default
function WouldLoop
virtual bool WouldLoop(
const SockAddr & to,
const SockAddr & from
) const =0
return true if traffic with source and dest addresses would cause a loop in resolution and thus should not be sent to query handlers
Reimplemented by: llarp::dns::PacketSource_Wrapper::WouldLoop
function SendTo
virtual void SendTo(
const SockAddr & to,
const SockAddr & from,
OwnedBuffer buf
) const =0
send packet with src and dst address containing buf on this packet source
Reimplemented by: llarp::dns::PacketSource_Wrapper::SendTo
function Stop
virtual void Stop() =0
stop reading packets and end operation
Reimplemented by: llarp::dns::PacketSource_Wrapper::Stop
function BoundOn
virtual std::optional< SockAddr > BoundOn() const =0
returns the sockaddr we are bound on if applicable
Reimplemented by: llarp::dns::PacketSource_Wrapper::BoundOn
Updated on 2026-01-10 at 22:49:45 +0000