]> git.meshlink.io Git - meshlink/commit
Add functions to get the amount of bytes in chanenl send and receive buffers. feature/channel-sendq-recvq
authorGuus Sliepen <guus@meshlink.io>
Sun, 17 Mar 2019 21:01:43 +0000 (22:01 +0100)
committerGuus Sliepen <guus@meshlink.io>
Sun, 17 Mar 2019 21:01:43 +0000 (22:01 +0100)
commit56df3865362dee0ac42707e364365f6177fd3aa4
treea0bd706a8ac2395319638ccc81dccf0c8508221d
parentec02aca3d7888f072c5c0d52ba6b5c37ed42b69e
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