diff options
| author | Gordon Sim <gsim@apache.org> | 2013-03-23 17:59:50 +0000 |
|---|---|---|
| committer | Gordon Sim <gsim@apache.org> | 2013-03-23 17:59:50 +0000 |
| commit | cfa98a776511eb4a713c7e87796bc3fcfaafbe42 (patch) | |
| tree | 95bbf3dc2b114627fa5d03d394fcf70cd37da6e4 /cpp/src/qpid/client | |
| parent | 964edfa59bd065b1db97ea16932ef2553ee8ac04 (diff) | |
| download | qpid-python-cfa98a776511eb4a713c7e87796bc3fcfaafbe42.tar.gz | |
QPID-4586: fixes for dynamic sources/targets and on demand creation of nodes
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1460198 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/client')
| -rw-r--r-- | cpp/src/qpid/client/amqp0_10/ReceiverImpl.cpp | 5 | ||||
| -rw-r--r-- | cpp/src/qpid/client/amqp0_10/ReceiverImpl.h | 1 | ||||
| -rw-r--r-- | cpp/src/qpid/client/amqp0_10/SenderImpl.cpp | 5 | ||||
| -rw-r--r-- | cpp/src/qpid/client/amqp0_10/SenderImpl.h | 1 |
4 files changed, 12 insertions, 0 deletions
diff --git a/cpp/src/qpid/client/amqp0_10/ReceiverImpl.cpp b/cpp/src/qpid/client/amqp0_10/ReceiverImpl.cpp index 40b09b0fc0..11f9475cad 100644 --- a/cpp/src/qpid/client/amqp0_10/ReceiverImpl.cpp +++ b/cpp/src/qpid/client/amqp0_10/ReceiverImpl.cpp @@ -143,6 +143,11 @@ uint32_t ReceiverImpl::getUnsettled() return parent->getUnsettledAcks(destination); } +qpid::messaging::Address ReceiverImpl::getAddress() const +{ + return address; +} + ReceiverImpl::ReceiverImpl(SessionImpl& p, const std::string& name, const qpid::messaging::Address& a) : diff --git a/cpp/src/qpid/client/amqp0_10/ReceiverImpl.h b/cpp/src/qpid/client/amqp0_10/ReceiverImpl.h index 76da4f31a9..4dba76c8d9 100644 --- a/cpp/src/qpid/client/amqp0_10/ReceiverImpl.h +++ b/cpp/src/qpid/client/amqp0_10/ReceiverImpl.h @@ -66,6 +66,7 @@ class ReceiverImpl : public qpid::messaging::ReceiverImpl void received(qpid::messaging::Message& message); qpid::messaging::Session getSession() const; bool isClosed() const; + qpid::messaging::Address getAddress() const; private: mutable sys::Mutex lock; diff --git a/cpp/src/qpid/client/amqp0_10/SenderImpl.cpp b/cpp/src/qpid/client/amqp0_10/SenderImpl.cpp index b275db38d7..7001acaf99 100644 --- a/cpp/src/qpid/client/amqp0_10/SenderImpl.cpp +++ b/cpp/src/qpid/client/amqp0_10/SenderImpl.cpp @@ -34,6 +34,11 @@ SenderImpl::SenderImpl(SessionImpl& _parent, const std::string& _name, parent(&_parent), name(_name), address(_address), state(UNRESOLVED), capacity(50), window(0), flushed(false), unreliable(AddressResolution::is_unreliable(address)) {} +qpid::messaging::Address SenderImpl::getAddress() const +{ + return address; +} + void SenderImpl::send(const qpid::messaging::Message& message, bool sync) { if (unreliable) { // immutable, don't need lock diff --git a/cpp/src/qpid/client/amqp0_10/SenderImpl.h b/cpp/src/qpid/client/amqp0_10/SenderImpl.h index d75863c743..ee250af2d4 100644 --- a/cpp/src/qpid/client/amqp0_10/SenderImpl.h +++ b/cpp/src/qpid/client/amqp0_10/SenderImpl.h @@ -56,6 +56,7 @@ class SenderImpl : public qpid::messaging::SenderImpl void init(qpid::client::AsyncSession, AddressResolution&); const std::string& getName() const; qpid::messaging::Session getSession() const; + qpid::messaging::Address getAddress() const; private: mutable sys::Mutex lock; |
