void on_tracker_accept(proton::tracker &t) override { confirmed++; if (confirmed == total) { std::cout << "all messages confirmed" << std::endl; t.connection().close(); } }
void on_tracker_accept(proton::tracker &t) override { confirmed_++; t.settle(); if (confirmed_ == total_) { std::cout << "all messages confirmed" << std::endl; if (!replying_) t.connection().close(); } }
void on_tracker_accept(proton::tracker &t) override { // All done. t.connection().close(); }