]> git.meshlink.io Git - meshlink/commit - src/meshlink++.h
Add functions to get the amount of bytes in chanenl send and receive buffers.
authorGuus Sliepen <guus@meshlink.io>
Sun, 17 Mar 2019 21:01:43 +0000 (22:01 +0100)
committerGuus Sliepen <guus@meshlink.io>
Sat, 30 Mar 2019 22:48:32 +0000 (23:48 +0100)
commitecfe7cbbe08dc99ba6f329ad66bb8ee09ce9539b
treec96002d23bee4b9cab2cf2f0d79904fb2860f2d9
parent28dcb47cfa2c9788eca533e9131573ac9830f2c7
Add functions to get the amount of bytes in chanenl send and receive buffers.

meshlink_channel_get_sendq() and meshlink_channel_get_recvq() call the
underlying UTCP connection's utcp_get_sendq() and utcp_get_recvq().
These return the amount of bytes waiting in the send and receive buffers.
In particular, a non-zero value for sendq means that sent data has not been
ACKed by the peer yet.
src/meshlink++.h
src/meshlink.c
src/meshlink.h
src/utcp