Debian Codegraph @

cpp/examples/README.dox

raw
1 // C++ examples list (doxygen format)
2 //
3 // For a tutorial-style description of the examples see tutorial.dox.
4 // To build the full HTML tutorial and documentation, in your build directory do:
5 //
6 // make docs-cpp
7 //
8 // then open cpp/docs/html/tutorial.html in your browser.
9
10 // DEVELOPER NOTE: If you add or modify examples, please add/update a short
11 // description below and (if appropriate) extend/update tutorial.dox.
12
13 /** @example helloworld.cpp
14
15 Connects to a broker on 127.0.0.1:5672, establishes a subscription
16 from the 'examples' node, and creates a sending link to the same
17 node. Sends one message and receives it back.
18
19 */
20
21 /** @example simple_send.cpp
22
23 An example of sending a fixed number of messages and tracking their
24 (asynchronous) acknowledgement. Messages are sent through the 'examples' node on
25 an intermediary accessible on 127.0.0.1:5672.
26
27 */
28
29 /** @example simple_recv.cpp
30
31 Subscribes to the 'examples' node on an intermediary accessible
32 on 127.0.0.1:5672. Simply prints out the body of received messages.
33
34 */
35
36 /** @example message_properties.cpp
37
38 Shows how to set and examine message properties.
39
40 */
41
42 /** @example direct_send.cpp
43
44 Accepts an incoming connection and then sends like `simple_send`. You can
45 connect directly to `direct_send` *without* a broker using @ref simple_recv.cpp.
46 Make sure to stop the broker first or use a different port for `direct_send`.
47
48 */
49
50 /** @example direct_recv.cpp
51
52 Accepts an incoming connection and then receives like `simple_recv`. You can
53 connect directly to `direct_recv` *without* a broker using @ref simple_send.cpp.
54 Make sure to stop the broker first or use a different port for `direct_recv`.
55
56 */
57
58 /// @cond INTERNAL
59 /** @example encode_decode.cpp
60
61 Shows how C++ data types can be converted to and from AMQP types.
62
63 */
64 /// @endcond
65
66 /** @example client.cpp
67
68 The client part of a request-response example. Sends requests and
69 prints out responses. Requires an intermediary that supports the AMQP
70 1.0 dynamic nodes on which the responses are received. The requests
71 are sent through the 'examples' node.
72
73 */
74
75 /** @example server.cpp
76
77 The server part of a request-response example, that receives requests
78 via the examples node, converts the body to uppercase and sends the
79 result back to the indicated reply address.
80
81 */
82
83 /** @example server_direct.cpp
84
85 A variant of the server part of a request-response example that
86 accepts incoming connections and does not need an intermediary. Much
87 like the original server, it receives incoming requests, converts the
88 body to uppercase and sends the result back to the indicated reply
89 address. Can be used in conjunction with any of the client
90 alternatives.
91
92 */
93
94 /** @example broker.cpp
95
96 A broker using the `proton::container`. You can use this to run other examples
97 that require an intermediary, or you can use any AMQP 1.0 broker. This broker
98 creates queues automatically when a client tries to send or subscribe.
99
100 */
101
102 /** @example scheduled_send.cpp
103
104 Shows how to use proton::container::schedule to schedule a timed callback.
105 This version uses std::function and so requires C++11 or better. For a C++03 compatible
106 approach see @ref scheduled_send_03.cpp.
107
108 */
109
110 /** @example scheduled_send_03.cpp
111
112 Shows how to use proton::container::schedule to schedule a timed callback in a
113 C++03 compatible way. See @ref scheduled_send.cpp for a more convenient approach
114 using std::function if you have C++11.
115
116 */
117
118 /** @example service_bus.cpp
119
120 A working example for accessing Service Bus session-enabled queues.
121 Also provides some general notes on Service Bus usage.
122
123 */
124
125 /** @example multithreaded_client.cpp
126
127 A multithreaded sender and receiver.
128
129 __Requires C++11__
130
131 */
132
133 /** @example multithreaded_client_flow_control.cpp
134
135 A multithreaded sender and receiver enhanced for flow control.
136
137 __Requires C++11__
138
139 */