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 | d66d50b103ab12df58132ce17ed5892df29b4b5c (patch) | |
tree | 0cdeb9f8365be75539e000f7e1d4a76387655b94 /qpid/cpp/tests/client_test.cpp | |
parent | 6625d0c47f5252af8d64abce773583ec27f28116 (diff) | |
download | qpid-python-d66d50b103ab12df58132ce17ed5892df29b4b5c.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@520972 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/tests/client_test.cpp')
-rw-r--r-- | qpid/cpp/tests/client_test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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; { |