summaryrefslogtreecommitdiff
path: root/cpp/examples/request-response/client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/examples/request-response/client.cpp')
-rw-r--r--cpp/examples/request-response/client.cpp28
1 files changed, 23 insertions, 5 deletions
diff --git a/cpp/examples/request-response/client.cpp b/cpp/examples/request-response/client.cpp
index 0ee0e78c92..aace2109fa 100644
--- a/cpp/examples/request-response/client.cpp
+++ b/cpp/examples/request-response/client.cpp
@@ -26,14 +26,32 @@
* This program is one of two programs that illustrate the
* request/response pattern.
*
- * client.cpp (this program)
*
- * Make requests of a service, print the response.
+ * client.cpp (this program)
+ *
+ * A client application that sends messages to the "amq.direct"
+ * exchange, using the routing key "request" to route messages to
+ * the server.
*
- * service.cpp
+ * Each instance of the client creates its own private response
+ * queue, binding it to the "amq.direct" exchange using it's
+ * session identifier as the routing key, and places its session
+ * identifier in the "reply-to" property of each message it sends.
+ *
+ *
+ * server.cpp
+ *
+ * A service that accepts messages from a request queue, converts
+ * their content to upper case, and sends the result to the
+ * original sender.
+ *
+ * This program creates a request queue, binds it to "amq.direct"
+ * using the routing key "request", then receives messages from
+ * the request queue. Each incoming message is converted to upper
+ * case, then sent to the "amq.direct" exchange using the
+ * request's reply-to property as the routing key for the
+ * response.
*
- * Accept requests, reverse the letters in each message, and
- * return it as a response.
*
*/