From d16e68ff247f3a67f3854d64abf8c685386faadc Mon Sep 17 00:00:00 2001 From: Jonathan Robie Date: Tue, 14 Sep 2010 21:19:42 +0000 Subject: Adds a parameter to several examples to allow connection options to be specified. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@997099 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/examples/messaging/map_receiver.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'qpid/cpp/examples/messaging/map_receiver.cpp') diff --git a/qpid/cpp/examples/messaging/map_receiver.cpp b/qpid/cpp/examples/messaging/map_receiver.cpp index ca170788aa..081f7394a8 100644 --- a/qpid/cpp/examples/messaging/map_receiver.cpp +++ b/qpid/cpp/examples/messaging/map_receiver.cpp @@ -38,8 +38,9 @@ using std::string; int main(int argc, char** argv) { const char* url = argc>1 ? argv[1] : "amqp:tcp:127.0.0.1:5672"; const char* address = argc>2 ? argv[2] : "message_queue; {create: always}"; - - Connection connection(url); + std::string connectionOptions = argc > 3 ? argv[3] : ""; + + Connection connection(url, connectionOptions); try { connection.open(); Session session = connection.createSession(); -- cgit v1.2.1