qb_ipcs_stats_get3
Get the service statistics.
Usage
#include <qb/qbipcs.h>
int32_t qb_ipcs_stats_get(
qb_ipcs_service_t *pt, /* service instance */
struct qb_ipcs_stats *stats, /* (out) the statistics structure */
int32_t clear_after_read /* clear stats after copying them into stats */
);
Params
pt service instance
stats (out) the statistics structure
clear_after_read clear stats after copying them into stats
Overview
Structures
struct qb_ipcs_stats {
uint32_t active_connections;
uint32_t closed_connections;
};
Return value
0 == ok; -errno to indicate a failure
Releases
4 releases since Debian 11 (Bullseye); the text changed 3 times.