]> git.meshlink.io Git - meshlink/commit
Allow the application to provide channel send/receive buffers. feature/set-buffer-storage
authorGuus Sliepen <guus@meshlink.io>
Thu, 18 Feb 2021 19:57:23 +0000 (20:57 +0100)
committerGuus Sliepen <guus@meshlink.io>
Thu, 18 Feb 2021 19:58:10 +0000 (20:58 +0100)
commit09456060201d2fad80d0f32f54a3f2eb7e6b0110
tree1354c04f3900cdda43a91bd6281d8d82b41b2332
parentf00c8df9175fc1aed22f3a889ca039beb78bb98d
Allow the application to provide channel send/receive buffers.

This adds two new functions to allow the application to allocate send
and/or receive buffers for channels:

meshlink_set_channel_rcvbuf_storage(mesh, channel, buf, size)
meshlink_set_channel_sndbuf_storage(mesh, channel, buf, size)
src/meshlink++.h
src/meshlink.c
src/meshlink.h
src/meshlink.sym
src/utcp-test.c
src/utcp.c
src/utcp.h
src/utcp_priv.h
test/Makefile.am
test/channels-buffer-storage.c [new file with mode: 0644]