summaryrefslogtreecommitdiff
path: root/qpid/cpp/tests/echo_service.cpp
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2006-12-13 17:15:01 +0000
committerGordon Sim <gsim@apache.org>2006-12-13 17:15:01 +0000
commit036527ef6d2460d13b29857f34a0e0c91814246a (patch)
treef6e9ba4d794368d5fbfb1bf66db14ba60908532b /qpid/cpp/tests/echo_service.cpp
parent2b03d1a8dce5bc9d7d6baa19497554764f03721b (diff)
downloadqpid-python-036527ef6d2460d13b29857f34a0e0c91814246a.tar.gz
Added some doxygen comments for the client API.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@486747 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/tests/echo_service.cpp')
-rw-r--r--qpid/cpp/tests/echo_service.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/qpid/cpp/tests/echo_service.cpp b/qpid/cpp/tests/echo_service.cpp
index 6159aafca0..c6685476a3 100644
--- a/qpid/cpp/tests/echo_service.cpp
+++ b/qpid/cpp/tests/echo_service.cpp
@@ -82,7 +82,7 @@ int main(int argc, char** argv){
Queue response;
channel.declareQueue(response);
qpid::framing::FieldTable emptyArgs;
- channel.bind(Exchange::DEFAULT_DIRECT_EXCHANGE, response, response.getName(), emptyArgs);
+ channel.bind(Exchange::STANDARD_DIRECT_EXCHANGE, response, response.getName(), emptyArgs);
//Consume from the response queue, logging all echoed message to console:
LoggingListener listener;
@@ -100,7 +100,7 @@ int main(int argc, char** argv){
Message msg;
msg.getHeaders().setString("RESPONSE_QUEUE", response.getName());
msg.setData(text);
- channel.publish(msg, Exchange::DEFAULT_DIRECT_EXCHANGE, echo_service);
+ channel.publish(msg, Exchange::STANDARD_DIRECT_EXCHANGE, echo_service);
std::cout << "Enter text to send:" << std::endl;
}
@@ -121,7 +121,7 @@ int main(int argc, char** argv){
Queue request("request");
channel.declareQueue(request);
qpid::framing::FieldTable emptyArgs;
- channel.bind(Exchange::DEFAULT_DIRECT_EXCHANGE, request, echo_service, emptyArgs);
+ channel.bind(Exchange::STANDARD_DIRECT_EXCHANGE, request, echo_service, emptyArgs);
//Consume from the request queue, echoing back all messages received to the client that sent them
EchoServer server(&channel);
@@ -152,7 +152,7 @@ void EchoServer::received(Message& message)
std::cout << "Echoing " << message.getData() << " back to " << name << std::endl;
//'echo' the message back:
- channel->publish(message, Exchange::DEFAULT_DIRECT_EXCHANGE, name);
+ channel->publish(message, Exchange::STANDARD_DIRECT_EXCHANGE, name);
}
}