From 80406d0fb680239a0141b81fb0b9f20d20c9b1e1 Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Fri, 27 Jul 2007 15:44:52 +0000 Subject: Use execution layer to acknowledge messages. Turn off 0-9 framing of requests and responses. Some refactoring around message delivery. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@560285 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/client/ClientChannel.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'cpp/src/qpid/client/ClientChannel.cpp') diff --git a/cpp/src/qpid/client/ClientChannel.cpp b/cpp/src/qpid/client/ClientChannel.cpp index 0033cbdbe4..19b4726a72 100644 --- a/cpp/src/qpid/client/ClientChannel.cpp +++ b/cpp/src/qpid/client/ClientChannel.cpp @@ -77,7 +77,7 @@ void Channel::protocolInit( connection->connector->init(); // Send ProtocolInit block. ConnectionStartBody::shared_ptr connectionStart = responses.receive(); - + FieldTable props; string mechanism("PLAIN"); string response = ((char)0) + uid + ((char)0) + pwd; @@ -85,7 +85,7 @@ void Channel::protocolInit( ConnectionTuneBody::shared_ptr proposal = sendAndReceive( make_shared_ptr(new ConnectionStartOkBody( - version, connectionStart->getRequestId(), + version, //connectionStart->getRequestId(), props, mechanism, response, locale))); @@ -98,7 +98,7 @@ void Channel::protocolInit( **/ sendCommand(make_shared_ptr(new ConnectionTuneOkBody( - version, proposal->getRequestId(), + version, //proposal->getRequestId(), proposal->getChannelMax(), connection->getMaxFrameSize(), proposal->getHeartbeat()))); @@ -222,10 +222,10 @@ AMQMethodBody::shared_ptr method, const MethodContext& ctxt) } } -void Channel::handleChannel(AMQMethodBody::shared_ptr method, const MethodContext& ctxt) { +void Channel::handleChannel(AMQMethodBody::shared_ptr method, const MethodContext& /*ctxt*/) { switch (method->amqpMethodId()) { case ChannelCloseBody::METHOD_ID: - sendCommand(make_shared_ptr(new ChannelCloseOkBody(version, ctxt.getRequestId()))); + sendCommand(make_shared_ptr(new ChannelCloseOkBody(version/*, ctxt.getRequestId()*/))); peerClose(shared_polymorphic_downcast(method)); return; case ChannelFlowBody::METHOD_ID: -- cgit v1.2.1