1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-28 16:01:18 +01:00
Martine S. Lenders a7d468988d
sock: amend with zero-copy receive functions
This change amends the `sock` API by a set of functions to `sock` that
allow provisioning of stack-internal buffers to the caller on receive.

This allows to cover two use-cases

1. Zero-copy systems: if the stacks supported the buffer space provided
   by these functions can be the same that was filled in the link-layer
2. asynchronous receive within a wrapping sock layer (e.g. `sock_dtls`
   wrapping `sock_udp`): to receive packets of the lower level protocol
   asynchronously, the wrapping implementation layer would currently
   need to allocate its own buffer space, introducing a third buffer
   space in addition to the one of the application and the network
   stack. For a wrapping layer this is undesirable.

While there are security considerations exposing stack internal memory
space to the caller, I believe they are minor, as in the end the
application developer is the person in control of the node.
2020-03-24 14:02:36 +01:00
..
2019-11-23 22:39:07 +01:00
2019-11-23 22:39:37 +01:00
2020-03-06 15:22:43 +01:00
2019-11-23 22:39:07 +01:00
2019-03-26 21:56:05 +01:00
2020-01-02 11:56:25 +01:00
2019-11-23 22:39:37 +01:00
2019-01-10 18:07:29 +01:00
2019-09-12 14:58:16 +03:00
2020-03-01 18:37:51 +01:00
2019-11-23 22:39:37 +01:00
2018-04-10 15:40:18 +02:00
2019-03-26 21:37:20 +01:00
2018-03-06 14:00:32 +01:00
2019-11-23 22:39:37 +01:00
2019-03-26 21:56:05 +01:00
2018-01-30 21:18:36 +01:00
2019-11-23 22:39:37 +01:00