diff options
author | Gordon Sim <gsim@apache.org> | 2009-11-17 17:34:55 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2009-11-17 17:34:55 +0000 |
commit | 99c896bf60506c66f339d2ce51d4dca2725968af (patch) | |
tree | 5658e1d6c3ad6adfb2823dbbabefa5b66c951274 /cpp/src/qpid/messaging/Connection.cpp | |
parent | 054f31c5dd081bf0476ac8cc4db4ece722a465a5 (diff) | |
download | qpid-python-99c896bf60506c66f339d2ce51d4dca2725968af.tar.gz |
QPID-664: Allow application to set session name and retrieve session using that name; close all sessions when connection is closed.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@881394 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/messaging/Connection.cpp')
-rw-r--r-- | cpp/src/qpid/messaging/Connection.cpp | 3 |
1 files changed, 2 insertions, 1 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) {} |