nbd_stats_bytes_sent3
Statistics of bytes sent over connection so far
Usage
#include <libnbd.h>uint64_t nbd_stats_bytes_sent (struct nbd_handle *h);
Overview
Return the number of bytes that the client has sent to the server.
This tracks the plaintext bytes utilized by the NBD protocol; it may differ from the number of bytes actually sent over the connection, particularly when TLS is in use.
Return value
This call returns a counter.
Errors
This function does not fail.
The following parameters must not be NULL: "h". For more information see "Non-NULL parameters" in libnbd(3).
Version
This function first appeared in libnbd 1.16.
If you need to test if this function is available at compile time check if the following macro is defined:
#define LIBNBD_HAVE_NBD_STATS_BYTES_SENT 1
Releases
2 releases since Debian 13 (Trixie); the text changed 1 time.