1nbd_stats_bytes_received(3)         LIBNBD         nbd_stats_bytes_received(3)
2
3
4

NAME

6       nbd_stats_bytes_received - statistics of bytes received over connection
7       so far
8

SYNOPSIS

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

DESCRIPTION

17       Return the number of bytes that the client has received from the
18       server.
19
20       This tracks the plaintext bytes utilized by the NBD protocol; it may
21       differ from the number of bytes actually received over the connection,
22       particularly when TLS is in use.
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_BYTES_RECEIVED 1
40

SEE ALSO

42       nbd_create(3), nbd_stats_bytes_sent(3), nbd_stats_chunks_received(3),
43       nbd_stats_chunks_sent(3), libnbd(3).
44

AUTHORS

46       Eric Blake
47
48       Richard W.M. Jones
49
51       Copyright Red Hat
52

LICENSE

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