llarp::iwp::OutboundMessage

Public Functions

Name
OutboundMessage() =default
OutboundMessage(uint64_t msgid, ILinkSession::Message_t data, llarp_time_t now, ILinkSession::CompletionHandler handler, uint16_t priority)
size_t size() const
const byte_t * data() const
bool operator<(const OutboundMessage & other) const
ILinkSession::Packet_t XMIT() const
void Ack(byte_t bitmask)
void FlushUnAcked(std::function< void(ILinkSession::Packet_t)> sendpkt, llarp_time_t now)
bool ShouldFlush(llarp_time_t now) const
void Completed()
bool IsTransmitted() const
bool IsTimedOut(llarp_time_t now) const
void InformTimeout()

Public Attributes

Name
ILinkSession::Message_t m_Data
uint64_t m_MsgID
std::bitset< MAX_LINK_MSG_SIZE/FragmentSize > m_Acks
ILinkSession::CompletionHandler m_Completed
llarp_time_t m_LastFlush
ShortHash m_Digest
llarp_time_t m_StartedAt
uint16_t m_ResendPriority

Public Functions Documentation

function OutboundMessage

OutboundMessage() =default

function OutboundMessage

OutboundMessage(
    uint64_t msgid,
    ILinkSession::Message_t data,
    llarp_time_t now,
    ILinkSession::CompletionHandler handler,
    uint16_t priority
)

function size

inline size_t size() const

function data

inline const byte_t * data() const

function operator<

inline bool operator<(
    const OutboundMessage & other
) const

function XMIT

ILinkSession::Packet_t XMIT() const

function Ack

void Ack(
    byte_t bitmask
)

function FlushUnAcked

void FlushUnAcked(
    std::function< void(ILinkSession::Packet_t)> sendpkt,
    llarp_time_t now
)

function ShouldFlush

bool ShouldFlush(
    llarp_time_t now
) const

function Completed

void Completed()

function IsTransmitted

bool IsTransmitted() const

function IsTimedOut

bool IsTimedOut(
    llarp_time_t now
) const

function InformTimeout

void InformTimeout()

Public Attributes Documentation

variable m_Data

ILinkSession::Message_t m_Data;

variable m_MsgID

uint64_t m_MsgID = 0;

variable m_Acks

std::bitset< MAX_LINK_MSG_SIZE/FragmentSize > m_Acks;

variable m_Completed

ILinkSession::CompletionHandler m_Completed;

variable m_LastFlush

llarp_time_t m_LastFlush = 0s;

variable m_Digest

ShortHash m_Digest;

variable m_StartedAt

llarp_time_t m_StartedAt = 0s;

variable m_ResendPriority

uint16_t m_ResendPriority;

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