summaryrefslogtreecommitdiff
path: root/cpp/examples/request-response/server.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
commitf6f56f56ebb092d8808119a66ced9fcd0399b238 (patch)
tree3c38eba69b014d53a62f20f92722bed6c1b547d0 /cpp/examples/request-response/server.cpp
parentc238bdf224cb3ba37c5fb2de06da7f41e98545a2 (diff)
downloadqpid-python-f6f56f56ebb092d8808119a66ced9fcd0399b238.tar.gz
QPID-1445 patch from Jonathan
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@712699 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/examples/request-response/server.cpp')
-rw-r--r--cpp/examples/request-response/server.cpp28
1 files changed, 23 insertions, 5 deletions
diff --git a/cpp/examples/request-response/server.cpp b/cpp/examples/request-response/server.cpp
index df189cfdd8..fb3b78d47b 100644
--- a/cpp/examples/request-response/server.cpp
+++ b/cpp/examples/request-response/server.cpp
@@ -26,14 +26,32 @@
* This program is one of two programs that illustrate the
* request/response pattern.
*
- * client.cpp
*
- * Make requests of a service, print the response.
+ * client.cpp
+ *
+ * A client application that sends messages to the "amq.direct"
+ * exchange, using the routing key "request" to route messages to
+ * the server.
*
- * server.cpp (this program)
+ * 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 (this program)
+ *
+ * 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.
*
*/