summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/messaging/Connection.cpp
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2010-05-11 10:06:30 +0000
committerGordon Sim <gsim@apache.org>2010-05-11 10:06:30 +0000
commitbe8e1bf6b6a0d760bddbbe6642d477a95f36ab42 (patch)
treee1863cf84997106773756b8f013c1da799439652 /cpp/src/qpid/messaging/Connection.cpp
parentb7112a8d67d0fbb02eb59c5c7251c1cf1ae3c1c5 (diff)
downloadqpid-python-be8e1bf6b6a0d760bddbbe6642d477a95f36ab42.tar.gz
QPID-664: Add default constructor for Connection; add option to set url on existing connection.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@943071 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/messaging/Connection.cpp')
-rw-r--r--cpp/src/qpid/messaging/Connection.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/cpp/src/qpid/messaging/Connection.cpp b/cpp/src/qpid/messaging/Connection.cpp
index 80e96af1d6..53d37562e7 100644
--- a/cpp/src/qpid/messaging/Connection.cpp
+++ b/cpp/src/qpid/messaging/Connection.cpp
@@ -54,6 +54,13 @@ Connection::Connection(const std::string& url, const Variant::Map& options)
PI::ctor(*this, new qpid::client::amqp0_10::ConnectionImpl(url, options));
}
+Connection::Connection()
+{
+ Variant::Map options;
+ std::string url = "amqp:tcp:127.0.0.1:5672";
+ PI::ctor(*this, new qpid::client::amqp0_10::ConnectionImpl(url, options));
+}
+
void Connection::open() { impl->open(); }
bool Connection::isOpen() { return impl->isOpen(); }
void Connection::close() { impl->close(); }