From f6f56f56ebb092d8808119a66ced9fcd0399b238 Mon Sep 17 00:00:00 2001 From: "Carl C. Trieloff" Date: Mon, 10 Nov 2008 17:05:41 +0000 Subject: QPID-1445 patch from Jonathan git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@712699 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/examples/request-response/client.cpp | 28 +++++++++++++++++++++++----- 1 file changed, 23 insertions(+), 5 deletions(-) (limited to 'cpp/examples/request-response/client.cpp') 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. * */ -- cgit v1.2.1