pw_channel#
pw_channel is deprecated
Due to changes in pw_async2 and pw_multibuf,
pw_channel in its current state is deprecated. Do not use it for new
code.
A new module that provides the functionality of pw_channel with the new
pw::MultiBuf and pw_async2 futures will be created to replace
pw_channel.
Note that pw_async2 Channels are not
related to pw_channel.
Async, zero-copy API for sending and receiving bytes or datagrams
Deprecated C++
pw_channel provides features that are essential for efficient,
high-performance communications. The Channel API is:
Flow-control-aware: Built-in backpressure ensures that data is only requested when consumers are able to buffer and handle it.
Zero-copy: Data transfers seamlessly throughout the stack without copying between intermediate buffers or memory pools.
Composable: Layers of the communications stack are swappable, allowing more code reuse and configurability.
Asynchronous: No need for dedicated threads or nested callbacks.
Not sure if pw_channel is right for you? Check out
Why pw_channel to learn how pw_channel handles
flow control, backpressure, composability, and more.