Loading...
Searching...
No Matches

A mock CongURE state object. More...

Detailed Description

A mock CongURE state object.

Definition at line 35 of file mock.h.

#include <mock.h>

Data Fields

congure_snd_t super
 see congure_snd_t
 
const congure_snd_driver_tmethods
 Optional methods called in addition to the tracking functions of the mock driver.
 
uint8_t init_calls
 How often was the congure_snd_driver_t::init() method called?
 
uint8_t inter_msg_interval_calls
 How often was the congure_snd_driver_t::inter_msg_interval() method called?
 
uint8_t report_msg_sent_calls
 How often was the congure_snd_driver_t::report_msg_sent() method called?
 
uint8_t report_msg_discarded_calls
 How often was the congure_snd_driver_t::report_msg_discarded() method called?
 
uint8_t report_msgs_timeout_calls
 How often was the congure_snd_driver_t::report_msgs_timeout() method called?
 
uint8_t report_msgs_lost_calls
 How often was the congure_snd_driver_t::report_msgs_lost() method called?
 
uint8_t report_msg_acked_calls
 How often was the congure_snd_driver_t::report_msg_acked() method called?
 
uint8_t report_ecn_ce_calls
 How often was the congure_snd_driver_t::report_ecn_ce() method called?
 
struct { 
 
   congure_snd_t *   c 
 The CongURE object to initialize. More...
 
   void *   ctx 
 Context for callbacks specific to CC. More...
 
init_args 
 What were the arguments for the last congure_snd_driver_t::init() call?
 
struct { 
 
   congure_snd_t *   c 
 The CongURE state object. More...
 
   unsigned   msg_size 
 The size of the next message to send. More...
 
inter_msg_interval_args 
 What were the arguments for the last congure_snd_driver_t::inter_msg_interval() call?
 
struct { 
 
   congure_snd_t *   c 
 The CongURE state object. More...
 
   unsigned   msg_size 
 Size of the message. More...
 
report_msg_sent_args 
 What were the arguments for the last congure_snd_driver_t::report_msg_sent() call?
 
struct { 
 
   congure_snd_t *   c 
 The CongURE state object. More...
 
   unsigned   msg_size 
 Size of the message. More...
 
report_msg_discarded_args 
 What were the arguments for the last congure_snd_driver_t::report_msg_discarded() call?
 
struct { 
 
   congure_snd_t *   c 
 The CongURE state object. More...
 
   congure_snd_msg_t *   msgs 
 A collection of messages for which the ACK timed out. More...
 
report_msgs_timeout_args 
 What were the arguments for the last congure_snd_driver_t::report_msgs_timeout() call?
 
struct { 
 
   congure_snd_t *   c 
 The CongURE state object. More...
 
   congure_snd_msg_t *   msgs 
 A collection of messages that are known to be lost. More...
 
report_msgs_lost_args 
 What were the arguments for the last congure_snd_driver_t::report_msgs_lost() call?
 
struct { 
 
   congure_snd_t *   c 
 The CongURE state object. More...
 
   congure_snd_msg_t *   msg 
 The ACK'd message. More...
 
   congure_snd_ack_t *   ack 
 The received ACK. More...
 
report_msg_acked_args 
 What were the arguments for the last congure_snd_driver_t::report_msg_acked() call?
 
struct { 
 
   congure_snd_t *   c 
 The CongURE state object. More...
 
   ztimer_now_t   time 
 Timestamp of the message the CE event occurred for was sent. More...
 
report_ecn_ce_args 
 What were the arguments for the last congure_snd_driver_t::report_ecn_ce() call?
 
- Data Fields inherited from congure_snd_t
const congure_snd_driver_tdriver
 Driver for the state object.
 
void * ctx
 Context for callbacks specific to the congestion control.
 
congure_wnd_size_t cwnd
 Congestion window size.
 

Field Documentation

◆ ack

congure_snd_ack_t* congure_mock_snd_t::ack

The received ACK.

Definition at line 142 of file mock.h.

◆ c

congure_snd_t* congure_mock_snd_t::c

The CongURE object to initialize.

The CongURE state object.

Definition at line 86 of file mock.h.

◆ ctx

void* congure_mock_snd_t::ctx

Context for callbacks specific to CC.

Definition at line 87 of file mock.h.

◆ init_calls

uint8_t congure_mock_snd_t::init_calls

How often was the congure_snd_driver_t::init() method called?

Definition at line 45 of file mock.h.

◆ inter_msg_interval_calls

uint8_t congure_mock_snd_t::inter_msg_interval_calls

How often was the congure_snd_driver_t::inter_msg_interval() method called?

Definition at line 50 of file mock.h.

◆ methods

const congure_snd_driver_t* congure_mock_snd_t::methods

Optional methods called in addition to the tracking functions of the mock driver.

Definition at line 41 of file mock.h.

◆ msg

congure_snd_msg_t* congure_mock_snd_t::msg

The ACK'd message.

Definition at line 141 of file mock.h.

◆ msg_size

unsigned congure_mock_snd_t::msg_size

The size of the next message to send.

Size of the message.

Definition at line 95 of file mock.h.

◆ msgs

congure_snd_msg_t* congure_mock_snd_t::msgs

A collection of messages for which the ACK timed out.

A collection of messages that are known to be lost.

Definition at line 122 of file mock.h.

◆ report_ecn_ce_calls

uint8_t congure_mock_snd_t::report_ecn_ce_calls

How often was the congure_snd_driver_t::report_ecn_ce() method called?

Definition at line 80 of file mock.h.

◆ report_msg_acked_calls

uint8_t congure_mock_snd_t::report_msg_acked_calls

How often was the congure_snd_driver_t::report_msg_acked() method called?

Definition at line 75 of file mock.h.

◆ report_msg_discarded_calls

uint8_t congure_mock_snd_t::report_msg_discarded_calls

How often was the congure_snd_driver_t::report_msg_discarded() method called?

Definition at line 60 of file mock.h.

◆ report_msg_sent_calls

uint8_t congure_mock_snd_t::report_msg_sent_calls

How often was the congure_snd_driver_t::report_msg_sent() method called?

Definition at line 55 of file mock.h.

◆ report_msgs_lost_calls

uint8_t congure_mock_snd_t::report_msgs_lost_calls

How often was the congure_snd_driver_t::report_msgs_lost() method called?

Definition at line 70 of file mock.h.

◆ report_msgs_timeout_calls

uint8_t congure_mock_snd_t::report_msgs_timeout_calls

How often was the congure_snd_driver_t::report_msgs_timeout() method called?

Definition at line 65 of file mock.h.

◆ super

congure_snd_t congure_mock_snd_t::super

see congure_snd_t

Definition at line 36 of file mock.h.

◆ time

ztimer_now_t congure_mock_snd_t::time

Timestamp of the message the CE event occurred for was sent.

Definition at line 153 of file mock.h.


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