Anjay Lite
Loading...
Searching...
No Matches
anj_exchange_udp_tx_params_t Struct Reference

#include <defs.h>

Data Fields

anj_time_duration_t ack_timeout
 
double ack_random_factor
 
uint16_t max_retransmit
 

Detailed Description

CoAP transmission parameters (RFC 7252).

These parameters control the timing and retransmission behavior of confirmable CoAP messages sent over UDP.

The initial retransmission timeout is chosen randomly between ack_timeout and ack_timeout × ack_random_factor. With default values, this corresponds to a range of 2—3 seconds. After each retransmission, the timeout value is doubled.

Retransmissions continue until either a response is received or max_retransmit attempts have been made.

Field Documentation

◆ ack_random_factor

double ack_random_factor

ACK_RANDOM_FACTOR multiplier applied to randomize the timeout.

◆ ack_timeout

anj_time_duration_t ack_timeout

Initial ACK_TIMEOUT value.

◆ max_retransmit

uint16_t max_retransmit

Maximum number of retransmissions before giving up.


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