qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jonat...@apache.org
Subject svn commit: r934581 - /qpid/trunk/qpid/cpp/examples/messaging/hello_world.cpp
Date Thu, 15 Apr 2010 20:32:25 GMT
Author: jonathan
Date: Thu Apr 15 20:32:25 2010
New Revision: 934581

URL: http://svn.apache.org/viewvc?rev=934581&view=rev
Log:
Naming change: variable queueName is now called address.

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

Modified: qpid/trunk/qpid/cpp/examples/messaging/hello_world.cpp
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/examples/messaging/hello_world.cpp?rev=934581&r1=934580&r2=934581&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/examples/messaging/hello_world.cpp (original)
+++ qpid/trunk/qpid/cpp/examples/messaging/hello_world.cpp Thu Apr 15 20:32:25 2010
@@ -16,9 +16,9 @@ int main() {
     connection.open();
     Session session = connection.createSession();
 
-    std::string queueName = "message_queue";
+    std::string address = "message_queue";
 
-    Sender sender = session.createSender(queueName);
+    Sender sender = session.createSender(address);
     
     for (int i=0; i<5; i++) {
       std::stringstream content;
@@ -28,7 +28,7 @@ int main() {
     }
     sender.close();
 	
-    Receiver receiver = session.createReceiver(queueName);
+    Receiver receiver = session.createReceiver(address);
 
     Message message;
     Duration timeout(1000); /* in milliseconds */



---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:commits-subscribe@qpid.apache.org


Mime
View raw message