1nbd_stats_chunks_received(3)        LIBNBD        nbd_stats_chunks_received(3)
2
3
4

NAME

6       nbd_stats_chunks_received - statistics of chunks received over
7       connection so far
8

SYNOPSIS

10        #include <libnbd.h>
11
12        uint64_t nbd_stats_chunks_received (
13                   struct nbd_handle *h
14                 );
15

DESCRIPTION

17       Return the number of chunks that the client has received from the
18       server, where a chunk is a group of bytes delineated by a magic number
19       that cannot be further subdivided without breaking the protocol.
20
21       This number does not necessarily relate to the number of API calls
22       made, nor to the number of TCP packets received over the connection.
23

RETURN VALUE

25       This call returns a counter.
26

ERRORS

28       This function does not fail.
29
30       The following parameters must not be NULL: "h".  For more information
31       see "Non-NULL parameters" in libnbd(3).
32

VERSION

34       This function first appeared in libnbd 1.16.
35
36       If you need to test if this function is available at compile time check
37       if the following macro is defined:
38
39        #define LIBNBD_HAVE_NBD_STATS_CHUNKS_RECEIVED 1
40

SEE ALSO

42       nbd_create(3), nbd_get_structured_replies_negotiated(3),
43       nbd_stats_bytes_received(3), nbd_stats_bytes_sent(3),
44       nbd_stats_chunks_sent(3), libnbd(3).
45

AUTHORS

47       Eric Blake
48
49       Richard W.M. Jones
50
52       Copyright Red Hat
53

LICENSE

55       This library is free software; you can redistribute it and/or modify it
56       under the terms of the GNU Lesser General Public License as published
57       by the Free Software Foundation; either version 2 of the License, or
58       (at your option) any later version.
59
60       This library is distributed in the hope that it will be useful, but
61       WITHOUT ANY WARRANTY; without even the implied warranty of
62       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
63       Lesser General Public License for more details.
64
65       You should have received a copy of the GNU Lesser General Public
66       License along with this library; if not, write to the Free Software
67       Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
68       02110-1301 USA
69
70
71
72libnbd-1.18.1                     2023-10-31      nbd_stats_chunks_received(3)
Impressum