]> git.meshlink.io Git - utcp/commit
Add functions to get the amount of bytes in the send and receive buffers.
authorGuus Sliepen <guus@sliepen.org>
Sun, 17 Mar 2019 19:54:19 +0000 (20:54 +0100)
committerGuus Sliepen <guus@sliepen.org>
Sun, 17 Mar 2019 19:54:19 +0000 (20:54 +0100)
commit113cc69639c8148cb4ffb488065db41c09a861b3
treec131fefaabc642c89da5853968749e4c0f9c7577
parentb2c1a352bfa105c1d289dae31cb47b8fcc3963ff
Add functions to get the amount of bytes in the send and receive buffers.

utcp_get_sendq() returns the amount of bytes in the send buffer, which
corresponds to the amount of bytes not yet ACKed by the peer.

utcp_get_recvq() returns the amount of bytes in the receive buffer,
which may or may not have been acked already, but have not been read by
the application.
utcp.c
utcp.h