summaryrefslogtreecommitdiff
path: root/qpid/cpp/examples/request-response/client.cpp
diff options
context:
space:
mode:
authorCarl C. Trieloff <cctrieloff@apache.org>2008-11-10 17:05:41 +0000
committerCarl C. Trieloff <cctrieloff@apache.org>2008-11-10 17:05:41 +0000
commit781469828700c05fb48c92afd2acb9572b66eb32 (patch)
treeee8f6de9a6269cc9a90d468dd7d6677ac7c501db /qpid/cpp/examples/request-response/client.cpp
parentbc19bc82db70ee8d9335090e9283d764606c067f (diff)
downloadqpid-python-781469828700c05fb48c92afd2acb9572b66eb32.tar.gz
QPID-1445 patch from Jonathan
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@712699 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/examples/request-response/client.cpp')
-rw-r--r--qpid/cpp/examples/request-response/client.cpp28
1 files changed, 23 insertions, 5 deletions
diff --git a/qpid/cpp/examples/request-response/client.cpp b/qpid/cpp/examples/request-response/client.cpp
index 0ee0e78c92..aace2109fa 100644
--- a/qpid/cpp/examples/request-response/client.cpp
+++ b/qpid/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.
*
*/