File: io.md

package info (click to toggle)
qpid-proton 0.37.0-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 18,384 kB
  • sloc: ansic: 37,828; cpp: 37,140; python: 15,302; ruby: 6,018; xml: 477; sh: 320; pascal: 52; makefile: 18
file content (22 lines) | stat: -rw-r--r-- 865 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# IO integration {#io_page}

**Unsettled API** - The `proton::io` interfaces are new and remain
subject to change.

The `proton::io` namespace contains a service provider interface (SPI)
that allows you to embed Proton in alternative IO or threading
libraries.

The `proton::io::connection_driver` class converts an AMQP-encoded
byte stream, read from any IO source, into `proton::messaging_handler`
calls. It generates an AMQP-encoded byte stream as output that can be
written to any IO destination.

The connection driver has no threading or IO dependencies. It is not
thread-safe, but separate instances are independent and can be run
concurrently in a multithreaded framework. The driver is written in
portable C++98-compatible code.

For examples of use, see
[the proton source code](https://qpid.apache.org/proton), in particular the
C++ `proton::container`.