1QB_IPCS_STATS_GET(3)       libqb Programmer's Manual      QB_IPCS_STATS_GET(3)
2
3
4

NAME

6       qb_ipcs_stats_get - Get the service statistics.
7

SYNOPSIS

9       #include <qb/qbipcs.h>
10
11       int32_t qb_ipcs_stats_get(
12           qb_ipcs_service_t      *pt,
13           struct qb_ipcs_stats   *stats,
14           int32_t                 clear_after_read
15       );
16

PARAMS

18       pt               service instance
19
20       stats            (out) the statistics structure
21
22       clear_after_read clear stats after copying them into stats
23

DESCRIPTION

STRUCTURES

26       struct qb_ipcs_stats {
27           uint32_t  active_connections;
28           uint32_t  closed_connections;
29       };
30

RETURN VALUE

32       0 == ok; -errno to indicate a failure
33

SEE ALSO

35       qb_ipcs_response_send(3), qb_ipcs_ref(3), qb_ipcs_unref(3),
36       qb_ipcs_connection_auth_set(3), qb_ipcs_service_context_get(3),
37       qb_ipcs_connection_ref(3), qb_ipcs_connection_next_get(3),
38       qb_ipcs_connection_unref(3), qb_ipcs_context_set(3),
39       qb_ipcs_poll_handlers_set(3), qb_ipcs_request_rate_limit(3),
40       qb_ipcs_disconnect(3), qb_ipcs_connection_first_get(3),
41       qb_ipcs_enforce_buffer_size(3), qb_ipcs_destroy(3),
42       qb_ipcs_event_send(3), qb_ipcs_connection_stats_get_2(3),
43       qb_ipcs_service_context_set(3), qb_ipcs_connection_stats_get(3),
44       qb_ipcs_service_id_get(3), qb_ipcs_context_get(3),
45       qb_ipcs_connection_get_buffer_size(3), qb_ipcs_create(3),
46       qb_ipcs_run(3), qb_ipcs_event_sendv(3),
47       qb_ipcs_connection_service_context_get(3), qb_ipcs_response_sendv(3)
48
50       Copyright (C) 2010-2020 Red Hat, Inc. All rights reserved.
51
52
53
54LIBQB                             2020-07-30              QB_IPCS_STATS_GET(3)
Impressum