MCPcopy Create free account
hub / github.com/apache/qpid-proton / on_sendable

Method on_sendable

cpp/examples/broker.cpp:193–200  ·  view source on GitHub ↗

We have credit to send a message.

Source from the content-addressed store, hash-verified

191
192// We have credit to send a message.
193void Sender::on_sendable(proton::sender &sender) {
194 if (queue_) {
195 auto credit = sender.credit();
196 queue_->add([=]{queue_->flow(this, credit);});
197 } else {
198 pending_credit_ = sender.credit();
199 }
200}
201
202void Sender::on_sender_close(proton::sender &sender) {
203 if (queue_) {

Callers

nothing calls this directly

Calls 3

creditMethod · 0.45
addMethod · 0.45
flowMethod · 0.45

Tested by

no test coverage detected