1QB_IPCS_CONNECTION_STATS_GETl(i3b)qb Programmer's MaQnBu_aIlPCS_CONNECTION_STATS_GET(3)
2
3
4
6 qb_ipcs_connection_stats_get - Get the connection statistics.
7
8
10 #include <qb/qbipcs.h>
11
12 int32_t qb_ipcs_connection_stats_get(
13 qb_ipcs_connection_t *c,
14 struct qb_ipcs_connection_stats *stats,
15 int32_t clear_after_read
16 );
17
19 c connection instance
20
21 stats (out) the statistics structure
22
23 clear_after_read clear stats after copying them into stats
24
27 struct qb_ipcs_connection_stats {
28 int32_t client_pid;
29 uint64_t requests;
30 uint64_t responses;
31 uint64_t events;
32 uint64_t send_retries;
33 uint64_t recv_retries;
34 int32_t flow_control_state;
35 uint64_t flow_control_count;
36 };
37
39 0 == ok; -errno to indicate a failure
40
42 qb_ipcs_response_send(3), qb_ipcs_ref(3), qb_ipcs_unref(3),
43 qb_ipcs_connection_auth_set(3), qb_ipcs_service_context_get(3),
44 qb_ipcs_connection_ref(3), qb_ipcs_connection_next_get(3),
45 qb_ipcs_stats_get(3), qb_ipcs_connection_unref(3),
46 qb_ipcs_context_set(3), qb_ipcs_poll_handlers_set(3),
47 qb_ipcs_request_rate_limit(3), qb_ipcs_disconnect(3),
48 qb_ipcs_connection_first_get(3), qb_ipcs_enforce_buffer_size(3),
49 qb_ipcs_destroy(3), qb_ipcs_event_send(3),
50 qb_ipcs_connection_stats_get_2(3), qb_ipcs_service_context_set(3),
51 qb_ipcs_service_id_get(3), qb_ipcs_context_get(3),
52 qb_ipcs_connection_get_buffer_size(3), qb_ipcs_create(3),
53 qb_ipcs_run(3), qb_ipcs_event_sendv(3),
54 qb_ipcs_connection_service_context_get(3), qb_ipcs_response_sendv(3)
55
57 Copyright (C) 2010-2020 Red Hat, Inc.
58
59
60
61LIBQB 2021-03-03 QB_IPCS_CONNECTION_STATS_GET(3)