diff options
author | Gordon Sim <gsim@apache.org> | 2009-11-17 17:35:28 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2009-11-17 17:35:28 +0000 |
commit | 74c1740d54360bb4b091b5486c69f0f945d27abd (patch) | |
tree | 4eded291096792a62ce1f6546ea01c6e1959f3c8 /cpp/src/qpid/messaging/Session.cpp | |
parent | 99c896bf60506c66f339d2ce51d4dca2725968af (diff) | |
download | qpid-python-74c1740d54360bb4b091b5486c69f0f945d27abd.tar.gz |
QPID-664: Add accessors for connection from session, and for session from sender/receiver.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@881395 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/messaging/Session.cpp')
-rw-r--r-- | cpp/src/qpid/messaging/Session.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cpp/src/qpid/messaging/Session.cpp b/cpp/src/qpid/messaging/Session.cpp index 5c702051d7..99896caad4 100644 --- a/cpp/src/qpid/messaging/Session.cpp +++ b/cpp/src/qpid/messaging/Session.cpp @@ -20,6 +20,7 @@ */ #include "qpid/messaging/Session.h" #include "qpid/messaging/Address.h" +#include "qpid/messaging/Connection.h" #include "qpid/messaging/Message.h" #include "qpid/messaging/Sender.h" #include "qpid/messaging/Receiver.h" @@ -98,6 +99,11 @@ Receiver Session::getReceiver(const std::string& name) const return impl->getReceiver(name); } +Connection Session::getConnection() const +{ + return impl->getConnection(); +} + KeyError::KeyError(const std::string& msg) : Exception(msg) {} }} // namespace qpid::messaging |