QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
UdpDrainBudget Struct Reference

#include <UdpPeer.h>

Public Member Functions

bool available () const
 
void consume (qsizetype size)
 

Public Attributes

qsizetype datagrams = 0
 
qsizetype bytes = 0
 

Static Public Attributes

static constexpr qsizetype MAX_DATAGRAMS = 16
 
static constexpr qsizetype MAX_BYTES = 64 * 1024
 

Detailed Description

Definition at line 11 of file UdpPeer.h.

Member Function Documentation

◆ available()

bool UdpDrainBudget::available ( ) const
inline

Definition at line 18 of file UdpPeer.h.

References bytes, datagrams, MAX_BYTES, and MAX_DATAGRAMS.

◆ consume()

void UdpDrainBudget::consume ( qsizetype  size)
inline

Definition at line 20 of file UdpPeer.h.

References bytes, and datagrams.

Member Data Documentation

◆ bytes

qsizetype UdpDrainBudget::bytes = 0

Definition at line 16 of file UdpPeer.h.

Referenced by available(), and consume().

◆ datagrams

qsizetype UdpDrainBudget::datagrams = 0

Definition at line 15 of file UdpPeer.h.

Referenced by available(), and consume().

◆ MAX_BYTES

constexpr qsizetype UdpDrainBudget::MAX_BYTES = 64 * 1024
staticconstexpr

Definition at line 14 of file UdpPeer.h.

Referenced by available().

◆ MAX_DATAGRAMS

constexpr qsizetype UdpDrainBudget::MAX_DATAGRAMS = 16
staticconstexpr

Definition at line 13 of file UdpPeer.h.

Referenced by available().


The documentation for this struct was generated from the following file: