anjay
stats.h File Reference
#include <anjay/core.h>

Go to the source code of this file.

Functions

uint64_t anjay_get_tx_bytes (anjay_t *anjay)
 
uint64_t anjay_get_rx_bytes (anjay_t *anjay)
 
uint64_t anjay_get_num_incoming_retransmissions (anjay_t *anjay)
 
uint64_t anjay_get_num_outgoing_retransmissions (anjay_t *anjay)
 

Function Documentation

◆ anjay_get_num_incoming_retransmissions()

uint64_t anjay_get_num_incoming_retransmissions ( anjay_t anjay)
Returns
the number of packets received by the client to which cached responses were found.

NOTE: When ANJAY_WITH_NET_STATS is disabled this function always returns 0.

◆ anjay_get_num_outgoing_retransmissions()

uint64_t anjay_get_num_outgoing_retransmissions ( anjay_t anjay)
Returns
the number of packets sent by the client that were already cached as well as requests which the client did not get any response to.

NOTE: When ANJAY_WITH_NET_STATS is disabled this function always returns 0.

◆ anjay_get_rx_bytes()

uint64_t anjay_get_rx_bytes ( anjay_t anjay)
Returns
the amount of bytes received by the client.

NOTE: When ANJAY_WITH_NET_STATS is disabled this function always returns 0.

◆ anjay_get_tx_bytes()

uint64_t anjay_get_tx_bytes ( anjay_t anjay)
Returns
the total amount of bytes transmitted by the client.

NOTE: When ANJAY_WITH_NET_STATS is disabled this function always returns 0.