]> git.meshlink.io Git - utcp/commit - utcp.c
Implement ringbuffers.
authorGuus Sliepen <guus@sliepen.org>
Thu, 19 Mar 2020 23:00:05 +0000 (00:00 +0100)
committerGuus Sliepen <guus@sliepen.org>
Sat, 28 Mar 2020 21:11:18 +0000 (22:11 +0100)
commitbbd35b9f705bc7684cf469d87248c8fb3f7c85c7
tree9ca16ef586320d6a6154bb9bad3c8bbcb83ec546
parentd41728102f197003c7db2db6f679e1ca5e26535d
Implement ringbuffers.

This avoids a memmove() call every time data in the send buffer is
ACKed. Instead, we now have a memmove() every time the send buffer is
grown, but this happens only a few times at most.
utcp.c
utcp_priv.h