qb_ipcs_connection_stats_get3
Get the connection statistics.
Usage
#include <qb/qbipcs.h>
int32_t qb_ipcs_connection_stats_get(
qb_ipcs_connection_t *c, /* connection instance */
struct qb_ipcs_connection_stats *stats, /* (out) the statistics structure */
int32_t clear_after_read /* clear stats after copying them into stats */
);
Params
c connection instance
stats (out) the statistics structure
clear_after_read clear stats after copying them into stats
Overview
Structures
struct qb_ipcs_connection_stats {
int32_t client_pid;
uint64_t requests;
uint64_t responses;
uint64_t events;
uint64_t send_retries;
uint64_t recv_retries;
int32_t flow_control_state;
uint64_t flow_control_count;
};
Return value
0 == ok; -errno to indicate a failure
Releases
4 releases since Debian 11 (Bullseye); the text changed 3 times.