Debian Codegraph @

cpp/docs/io.md

raw
1 # IO integration {#io_page}
2
3 **Unsettled API** - The `proton::io` interfaces are new and remain
4 subject to change.
5
6 The `proton::io` namespace contains a service provider interface (SPI)
7 that allows you to embed Proton in alternative IO or threading
8 libraries.
9
10 The `proton::io::connection_driver` class converts an AMQP-encoded
11 byte stream, read from any IO source, into `proton::messaging_handler`
12 calls. It generates an AMQP-encoded byte stream as output that can be
13 written to any IO destination.
14
15 The connection driver has no threading or IO dependencies. It is not
16 thread-safe, but separate instances are independent and can be run
17 concurrently in a multithreaded framework. The driver is written in
18 portable C++98-compatible code.
19
20 For examples of use, see
21 [the proton source code](https://qpid.apache.org/proton), in particular the
22 C++ `proton::container`.