summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/client/BasicMessageChannel.cpp
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2007-07-24 14:27:31 +0000
committerGordon Sim <gsim@apache.org>2007-07-24 14:27:31 +0000
commita6303894d7f9a24df4a691af3ce94647c033ebff (patch)
tree943b75df7528c9fbff6b3170c3c4b66758bf22ad /cpp/src/qpid/client/BasicMessageChannel.cpp
parent9f120205e0d7a0b2666b9fd21a5296db07e32fd8 (diff)
downloadqpid-python-a6303894d7f9a24df4a691af3ce94647c033ebff.tar.gz
Initial support for latest approved 0-10 xml (with some transitional hacks included).
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@559059 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/client/BasicMessageChannel.cpp')
-rw-r--r--cpp/src/qpid/client/BasicMessageChannel.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/cpp/src/qpid/client/BasicMessageChannel.cpp b/cpp/src/qpid/client/BasicMessageChannel.cpp
index a1aacdee4e..70cb473426 100644
--- a/cpp/src/qpid/client/BasicMessageChannel.cpp
+++ b/cpp/src/qpid/client/BasicMessageChannel.cpp
@@ -197,11 +197,6 @@ void BasicMessageChannel::handle(boost::shared_ptr<AMQMethodBody> method) {
msg.setRedelivered(deliver->getRedelivered());
return;
}
- case BasicReturnBody::METHOD_ID: {
- incoming.openReference(BASIC_REF);
- incoming.createMessage(BASIC_RETURN, BASIC_REF);
- return;
- }
case BasicConsumeOkBody::METHOD_ID: {
Mutex::ScopedLock l(lock);
BasicConsumeOkBody::shared_ptr consumeOk =
@@ -332,10 +327,9 @@ void BasicMessageChannel::setReturnedMessageHandler(ReturnedMessageHandler* hand
}
void BasicMessageChannel::setQos(){
- channel.sendAndReceive<BasicQosOkBody>(
- make_shared_ptr(new BasicQosBody(channel.version, 0, channel.getPrefetch(), false)));
+ channel.send(make_shared_ptr(new BasicQosBody(channel.version, 0, channel.getPrefetch(), false)));
if(channel.isTransactional())
- channel.sendAndReceive<TxSelectOkBody>(make_shared_ptr(new TxSelectBody(channel.version)));
+ channel.send(make_shared_ptr(new TxSelectBody(channel.version)));
}
}} // namespace qpid::client