summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/messaging
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/qpid/messaging')
-rw-r--r--cpp/src/qpid/messaging/Connection.cpp3
-rw-r--r--cpp/src/qpid/messaging/ConnectionImpl.h3
2 files changed, 4 insertions, 2 deletions
diff --git a/cpp/src/qpid/messaging/Connection.cpp b/cpp/src/qpid/messaging/Connection.cpp
index feb6566008..8342fc546a 100644
--- a/cpp/src/qpid/messaging/Connection.cpp
+++ b/cpp/src/qpid/messaging/Connection.cpp
@@ -50,7 +50,8 @@ Connection& Connection::operator=(const Connection& c) { return PI::assign(*this
Connection::~Connection() { PI::dtor(*this); }
void Connection::close() { impl->close(); }
-Session Connection::newSession() { return impl->newSession(); }
+Session Connection::newSession(const std::string& name) { return impl->newSession(name); }
+Session Connection::getSession(const std::string& name) const { return impl->getSession(name); }
InvalidOptionString::InvalidOptionString(const std::string& msg) : Exception(msg) {}
diff --git a/cpp/src/qpid/messaging/ConnectionImpl.h b/cpp/src/qpid/messaging/ConnectionImpl.h
index aa9e5b5fbe..ce60f6f9fc 100644
--- a/cpp/src/qpid/messaging/ConnectionImpl.h
+++ b/cpp/src/qpid/messaging/ConnectionImpl.h
@@ -37,7 +37,8 @@ class ConnectionImpl : public virtual qpid::RefCounted
public:
virtual ~ConnectionImpl() {}
virtual void close() = 0;
- virtual Session newSession() = 0;
+ virtual Session newSession(const std::string& name) = 0;
+ virtual Session getSession(const std::string& name) const = 0;
private:
};
}} // namespace qpid::messaging