summaryrefslogtreecommitdiff
path: root/cpp/include/qpid/messaging/Sender.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/include/qpid/messaging/Sender.h')
-rw-r--r--cpp/include/qpid/messaging/Sender.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/cpp/include/qpid/messaging/Sender.h b/cpp/include/qpid/messaging/Sender.h
index 9b83a04d60..29af3810f4 100644
--- a/cpp/include/qpid/messaging/Sender.h
+++ b/cpp/include/qpid/messaging/Sender.h
@@ -24,6 +24,7 @@
#include "qpid/client/ClientImportExport.h"
#include "qpid/client/Handle.h"
#include "qpid/sys/IntegerTypes.h"
+#include <string>
namespace qpid {
namespace client {
@@ -68,6 +69,10 @@ class Sender : public qpid::client::Handle<SenderImpl>
*/
QPID_CLIENT_EXTERN uint32_t pending();
+ /**
+ * Returns the name of this sender.
+ */
+ QPID_CLIENT_EXTERN const std::string& getName() const;
private:
friend class qpid::client::PrivateImplRef<Sender>;
};