1knet_handle_get_stats(3) Kronosnet Programmer's Manualknet_handle_get_stats(3)
2
3
4

NAME

6       knet_handle_get_stats - Get statistics for compression & crypto.
7

SYNOPSIS

9       #include <libknet.h>
10
11       int knet_handle_get_stats(
12           knet_handle_t               knet_h,
13           struct knet_handle_stats   *stats,
14           size_t                      struct_size
15       );
16

DESCRIPTION

18       knet_handle_get_stats
19
20       knet_h - pointer to knet_handle_t
21
22       knet_handle_stats pointer to a knet_handle_stats structure
23
24       struct_size  size of knet_handle_stats structure to allow for backwards
25       compatibility. libknet will only copy this much  data  into  the  stats
26       structure  so  that older callers will not get overflowed if new fields
27       are added.
28

STRUCTURES

30       struct knet_handle_stats {
31           size_t    size;
32           uint64_t  tx_uncompressed_packets;
33           uint64_t  tx_compressed_packets;
34           uint64_t  tx_compressed_original_bytes;
35           uint64_t  tx_compressed_size_bytes;
36           uint64_t  tx_compress_time_ave;
37           uint64_t  tx_compress_time_min;
38           uint64_t  tx_compress_time_max;
39           uint64_t  rx_compressed_packets;
40           uint64_t  rx_compressed_original_bytes;
41           uint64_t  rx_compressed_size_bytes;
42           uint64_t  rx_compress_time_ave;
43           uint64_t  rx_compress_time_min;
44           uint64_t  rx_compress_time_max;
45           uint64_t  tx_crypt_packets;
46           uint64_t  tx_crypt_byte_overhead;
47           uint64_t  tx_crypt_time_ave;
48           uint64_t  tx_crypt_time_min;
49           uint64_t  tx_crypt_time_max;
50           uint64_t  rx_crypt_packets;
51           uint64_t  rx_crypt_time_ave;
52           uint64_t  rx_crypt_time_min;
53           uint64_t  rx_crypt_time_max;
54       };
55

RETURN VALUE

57       0 on success -1 on error and errno is set.
58

SEE ALSO

60       knet_handle_remove_datafd(3), knet_host_add(3),
61       knet_handle_pmtud_setfreq(3), knet_handle_pmtud_get(3),
62       knet_host_get_id_by_host_name(3), knet_host_get_status(3),
63       knet_link_get_pong_count(3), knet_link_get_priority(3),
64       knet_handle_free(3), knet_handle_enable_sock_notify(3),
65       knet_handle_get_datafd(3), knet_recv(3), knet_link_get_ping_timers(3),
66       knet_log_get_subsystem_id(3), knet_host_remove(3),
67       knet_host_enable_status_change_notify(3), knet_strtoaddr(3),
68       knet_send(3), knet_handle_enable_pmtud_notify(3),
69       knet_handle_get_transport_reconnect_interval(3),
70       knet_link_get_enable(3), knet_link_set_priority(3),
71       knet_log_set_loglevel(3), knet_handle_get_channel(3),
72       knet_link_get_config(3), knet_link_get_link_list(3),
73       knet_get_transport_list(3), knet_get_transport_id_by_name(3),
74       knet_log_get_loglevel_id(3), knet_handle_new_ex(3),
75       knet_host_set_name(3), knet_addrtostr(3), knet_handle_setfwd(3),
76       knet_get_compress_list(3), knet_host_set_policy(3),
77       knet_get_transport_name_by_id(3), knet_handle_enable_filter(3),
78       knet_handle_compress(3), knet_link_get_status(3),
79       knet_handle_add_datafd(3), knet_send_sync(3),
80       knet_log_get_loglevel_name(3), knet_host_get_host_list(3),
81       knet_host_get_policy(3), knet_link_set_enable(3),
82       knet_link_set_pong_count(3), knet_log_get_subsystem_name(3),
83       knet_host_get_name_by_host_id(3), knet_link_clear_config(3),
84       knet_log_get_loglevel(3), knet_handle_new(3),
85       knet_handle_pmtud_getfreq(3), knet_handle_clear_stats(3),
86       knet_link_set_config(3), knet_handle_crypto(3),
87       knet_get_crypto_list(3),
88       knet_handle_set_transport_reconnect_interval(3),
89       knet_link_set_ping_timers(3)
90
92       Copyright (C) 2010-2019 Red Hat, Inc. All rights reserved.
93
94
95
96kronosnet                         2019-05-09          knet_handle_get_stats(3)
Impressum