Author: chug
Date: Thu Jan  8 19:28:51 2015
New Revision: 1650359

URL: http://svn.apache.org/r1650359
Log:
QPID-6301: [C++ Messaging] Client example acks responses


Modified:
    qpid/trunk/qpid/cpp/examples/messaging/client.cpp

Modified: qpid/trunk/qpid/cpp/examples/messaging/client.cpp
URL: 
http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/examples/messaging/client.cpp?rev=1650359&r1=1650358&r2=1650359&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/examples/messaging/client.cpp (original)
+++ qpid/trunk/qpid/cpp/examples/messaging/client.cpp Thu Jan  8 19:28:51 2015
@@ -7,9 +7,9 @@
  * to you under the Apache License, Version 2.0 (the
  * "License"); you may not use this file except in compliance
  * with the License.  You may obtain a copy of the License at
- * 
+ *
  *   http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing,
  * software distributed under the License is distributed on an
  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -66,6 +66,7 @@ int main(int argc, char** argv) {
             sender.send(request);
             Message response = receiver.fetch();
             std::cout << request.getContentObject() << " -> " << 
response.getContentObject() << std::endl;
+            session.acknowledge(response);
        }
         connection.close();
         return 0;



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@qpid.apache.org
For additional commands, e-mail: commits-h...@qpid.apache.org

Reply via email to