]> git.meshlink.io Git - meshlink/commit
Allow the application to provide channel send/receive buffers.
authorGuus Sliepen <guus@meshlink.io>
Thu, 18 Feb 2021 19:57:23 +0000 (20:57 +0100)
committerGuus Sliepen <guus@meshlink.io>
Wed, 3 Mar 2021 11:36:31 +0000 (12:36 +0100)
commit0fdc99b6a501992b8c1dea2d1a909363b5564d0d
tree18d6692896229f9f2ebaf3abac084e4d408ba0d5
parent7ece2b2350630584a2268b6b028d545ea69053a3
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]