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

Function credit_topup

cpp/src/messaging_adapter.cpp:57–64  ·  view source on GitHub ↗

This must only be called for receiver links

Source from the content-addressed store, hash-verified

55namespace {
56// This must only be called for receiver links
57void credit_topup(pn_link_t *link) {
58 assert(pn_link_is_receiver(link));
59 int window = link_context::get(link).credit_window;
60 if (window) {
61 int delta = window - pn_link_credit(link);
62 pn_link_flow(link, delta);
63 }
64}
65
66
67void on_link_flow(messaging_handler& handler, pn_event_t* event) {

Callers 4

on_link_flowFunction · 0.85
on_deliveryFunction · 0.85
on_link_local_openFunction · 0.85
on_link_remote_openFunction · 0.85

Calls 4

pn_link_is_receiverFunction · 0.85
pn_link_creditFunction · 0.85
pn_link_flowFunction · 0.85
getFunction · 0.70

Tested by

no test coverage detected