1 #ifndef PROTON_SENDER_HPP
2 #define PROTON_SENDER_HPP
26 #include "./internal/export.hpp"
42 PN_CPP_EXTERN
sender(pn_link_t* s);
76 friend class internal::factory<
sender>;
77 friend class sender_iterator;
82 uint64_t tag_counter = 0;
89 class sender_iterator :
public internal::iter_base<sender, sender_iterator> {
90 sender_iterator(
sender snd, pn_session_t* s = 0) :
91 internal::iter_base<
sender, sender_iterator>(snd), session_(s) {}
96 internal::iter_base<sender, sender_iterator>(0), session_(0) {}
98 PN_CPP_EXTERN sender_iterator operator++();
101 pn_session_t* session_;
103 friend class connection;
104 friend class session;
108 typedef internal::iter_range<sender_iterator> sender_range;
Arbitrary binary data.
Definition: binary.hpp:40
A named channel for sending or receiving messages.
Definition: link.hpp:43
An AMQP message.
Definition: message.hpp:48
Options for creating a sender.
Definition: sender_options.hpp:60
A channel for sending messages.
Definition: sender.hpp:40
void open(const sender_options &opts)
Open the sender.
tracker send(const message &m)
Send a message on the sender.
void open()
Open the sender.
void return_credit()
Unsettled API - Return all unused credit to the receiver in response to a drain request.
sender()=default
Create an empty sender.
A point of origin for messages.
Definition: source.hpp:44
A destination for messages.
Definition: target.hpp:45
A tracker for a sent message.
Definition: tracker.hpp:41
A named channel for sending or receiving messages.
The main Proton namespace.
Definition: annotation_key.hpp:33
A tracker for a sent message.