From d66d50b103ab12df58132ce17ed5892df29b4b5c Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Wed, 21 Mar 2007 19:12:14 +0000 Subject: Refactored client side for dual-mode Channel supporting either 0-9 Message or 0-8 Basic. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@520972 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/tests/client_test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'qpid/cpp/tests/client_test.cpp') diff --git a/qpid/cpp/tests/client_test.cpp b/qpid/cpp/tests/client_test.cpp index 413523a6a7..92952c69b1 100644 --- a/qpid/cpp/tests/client_test.cpp +++ b/qpid/cpp/tests/client_test.cpp @@ -102,7 +102,7 @@ int main(int argc, char**) Monitor monitor; SimpleListener listener(&monitor); string tag("MyTag"); - channel.getBasic().consume(queue, tag, &listener); + channel.consume(queue, tag, &listener); if (verbose) std::cout << "Registered consumer." << std::endl; //we need to enable the message dispatching for this channel @@ -115,7 +115,7 @@ int main(int argc, char**) Message msg; string data("MyMessage"); msg.setData(data); - channel.getBasic().publish(msg, exchange, "MyTopic"); + channel.publish(msg, exchange, "MyTopic"); if (verbose) std::cout << "Published message: " << data << std::endl; { -- cgit v1.2.1