diff options
| author | Jonathan Robie <jonathan@apache.org> | 2010-09-14 21:19:42 +0000 |
|---|---|---|
| committer | Jonathan Robie <jonathan@apache.org> | 2010-09-14 21:19:42 +0000 |
| commit | 43393128c074be68dab06b6097072e62546689de (patch) | |
| tree | 73d4c38213da9ea063b777afeb96a2c39388039f /cpp/examples/messaging/map_receiver.cpp | |
| parent | 0b51c6b430224e3bfc09eede110ad8b1c530c213 (diff) | |
| download | qpid-python-43393128c074be68dab06b6097072e62546689de.tar.gz | |
Adds a parameter to several examples to allow connection options to be specified.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@997099 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/examples/messaging/map_receiver.cpp')
| -rw-r--r-- | cpp/examples/messaging/map_receiver.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cpp/examples/messaging/map_receiver.cpp b/cpp/examples/messaging/map_receiver.cpp index ca170788aa..081f7394a8 100644 --- a/cpp/examples/messaging/map_receiver.cpp +++ b/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(); |
