diff options
author | Alan Conway <aconway@apache.org> | 2007-03-21 19:12:14 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2007-03-21 19:12:14 +0000 |
commit | c1b0ba624ff2de40b23342cf2a96885342884dad (patch) | |
tree | f4fa4ef721b1fe98543cb49cc2c31f03cee452ed /cpp/tests/client_test.cpp | |
parent | df4faa062b3512312c78167bfbdf19ff969210ac (diff) | |
download | qpid-python-c1b0ba624ff2de40b23342cf2a96885342884dad.tar.gz |
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/qpid@520972 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/tests/client_test.cpp')
-rw-r--r-- | cpp/tests/client_test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/tests/client_test.cpp b/cpp/tests/client_test.cpp index 413523a6a7..92952c69b1 100644 --- a/cpp/tests/client_test.cpp +++ b/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; { |