summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/client/SessionBase_0_10.cpp
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2010-01-20 15:54:59 +0000
committerGordon Sim <gsim@apache.org>2010-01-20 15:54:59 +0000
commitb994b686b50801cf34f1833478c7736359c54b87 (patch)
tree2f86b10ca31732b061ce15354eaa5003f026050e /cpp/src/qpid/client/SessionBase_0_10.cpp
parent2a029cd38ae548cc3a1399f6e68959085546ffd6 (diff)
downloadqpid-python-b994b686b50801cf34f1833478c7736359c54b87.tar.gz
Provide access to a sessions connection.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@901247 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/client/SessionBase_0_10.cpp')
-rw-r--r--cpp/src/qpid/client/SessionBase_0_10.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/cpp/src/qpid/client/SessionBase_0_10.cpp b/cpp/src/qpid/client/SessionBase_0_10.cpp
index 1a345d534e..e114b7aacc 100644
--- a/cpp/src/qpid/client/SessionBase_0_10.cpp
+++ b/cpp/src/qpid/client/SessionBase_0_10.cpp
@@ -20,6 +20,7 @@
*/
#include "qpid/client/SessionBase_0_10.h"
#include "qpid/client/Connection.h"
+#include "qpid/client/ConnectionAccess.h"
#include "qpid/client/SessionImpl.h"
#include "qpid/client/Future.h"
#include "qpid/framing/all_method_bodies.h"
@@ -74,4 +75,11 @@ SessionId SessionBase_0_10::getId() const { return impl->getId(); }
bool SessionBase_0_10::isValid() const { return impl; }
+Connection SessionBase_0_10::getConnection()
+{
+ Connection c;
+ ConnectionAccess::setImpl(c, impl->getConnection());
+ return c;
+}
+
}} // namespace qpid::client