summaryrefslogtreecommitdiff
path: root/cpp/examples/messaging/hello_world.cpp
diff options
context:
space:
mode:
authorJonathan Robie <jonathan@apache.org>2010-04-15 20:32:25 +0000
committerJonathan Robie <jonathan@apache.org>2010-04-15 20:32:25 +0000
commitf5e5166c84948be4c218080a38d4e5179dab03e9 (patch)
treec2d8dcb5290c40215c7f56317b264fdcd0c6a196 /cpp/examples/messaging/hello_world.cpp
parent2acb15145016076f9aa21c50c9f5fb478e9b3588 (diff)
downloadqpid-python-f5e5166c84948be4c218080a38d4e5179dab03e9.tar.gz
Naming change: variable queueName is now called address.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@934581 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/examples/messaging/hello_world.cpp')
-rw-r--r--cpp/examples/messaging/hello_world.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/cpp/examples/messaging/hello_world.cpp b/cpp/examples/messaging/hello_world.cpp
index f861a02d97..360a22d1c2 100644
--- a/cpp/examples/messaging/hello_world.cpp
+++ b/cpp/examples/messaging/hello_world.cpp
@@ -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 */