diff options
author | Gordon Sim <gsim@apache.org> | 2009-11-17 10:52:33 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2009-11-17 10:52:33 +0000 |
commit | dfeb9089cd7702cb70e170fcf5f5d01cbbde080c (patch) | |
tree | a8965e1124fda146dedca255f912ed6e0a69a643 /cpp/src/qpid/messaging/Session.cpp | |
parent | 2b9be90fca9e4e47cc6b47d16dd97d6bfaf0931e (diff) | |
download | qpid-python-dfeb9089cd7702cb70e170fcf5f5d01cbbde080c.tar.gz |
QPID-664: Added getReceiver()/getSender() methods to session in new api.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@881236 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/messaging/Session.cpp')
-rw-r--r-- | cpp/src/qpid/messaging/Session.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/cpp/src/qpid/messaging/Session.cpp b/cpp/src/qpid/messaging/Session.cpp index 53e85d53b1..5c702051d7 100644 --- a/cpp/src/qpid/messaging/Session.cpp +++ b/cpp/src/qpid/messaging/Session.cpp @@ -89,4 +89,15 @@ Receiver Session::nextReceiver(qpid::sys::Duration timeout) uint32_t Session::available() { return impl->available(); } uint32_t Session::pendingAck() { return impl->pendingAck(); } +Sender Session::getSender(const std::string& name) const +{ + return impl->getSender(name); +} +Receiver Session::getReceiver(const std::string& name) const +{ + return impl->getReceiver(name); +} + +KeyError::KeyError(const std::string& msg) : Exception(msg) {} + }} // namespace qpid::messaging |