Debian Codegraph @

cpp/docs/main.md

raw
1 # Introduction {#mainpage}
2
3 The Qpid Proton C++ API enables writing clients and servers that send
4 and receive messages using the AMQP protocol. It is part of the
5 [Qpid Proton](https://qpid.apache.org/proton/index.html) suite of
6 messaging APIs.
7
8 The @ref overview_page presents the API's central concepts and
9 mechanics.
10
11 The @ref tutorial_page guides you through some basic examples. See
12 [**Examples**](examples.html) for a complete list of the sample
13 programs, including more advanced ones.
14
15 Qpid Proton C++ can be used in single- and multithreaded applications.
16 See @ref mt_page for guidance on writing efficient multithreaded
17 messaging applications.
18
19 ## Namespaces
20
21 The main @ref proton namespace contains classes and functions
22 representing AMQP concepts and key elements of the API. Together they
23 form a "protocol engine" API to create AMQP @ref proton::connection
24 "connections" and @ref proton::link "links", handle @ref
25 proton::messaging\_handler "events", and send and receive @ref
26 proton::message "messages". See @ref overview_page for more
27 information.
28
29 The main @ref proton namespace also contains C++ classes and functions
30 for handling AMQP- and API-specific data types. See @ref types_page
31 for more information.
32
33 The @ref proton::codec namespace contains interfaces for AMQP data
34 encoding and decoding.
35
36 The @ref proton::io namespace contains interfaces for integrating with
37 platform-native network IO. See @ref io_page for more information.
38
39 ## Conventions
40
41 Elements of the API marked as **Unsettled API**, including any
42 elements contained within them, are still evolving and thus are
43 subject to change. They are available to use, but newer versions of
44 Proton may require changes to your application source code.
45
46 Elements marked **Deprecated** are slated for removal in a future
47 release.
48
49 Sections labeled **Thread safety** describe when and where it is safe
50 to call functions or access data across threads.
51
52 Sections called **C++ versions** discuss features of the API that
53 depend on particular versions of C++ such as C++11.
54
55 ## URLs
56
57 The API uses URLs to identify three different kinds of resources. All
58 URL argument names are suffixed with `_url`.
59
60 Connection URLs (`conn_url` in argument lists) specify a target for
61 outgoing network connections. The path part of the URL is ignored.
62
63 Address URLs (`addr_url`) extend the connection URL to reference an
64 AMQP node such as a queue or topic. The path of the URL, minus the
65 leading slash, is treated as the AMQP address of the node.
66
67 Listener URLs (`listen_url`) specify a local network address and port for
68 accepting incoming TCP connections. The path part of the URL is ignored.
69 The host part may be empty, meaning "listen on all available interfaces".