| 50 | url(s), user(u), password(p), sent(0), confirmed(0), total(c) {} |
| 51 | |
| 52 | void on_container_start(proton::container &c) override { |
| 53 | proton::connection_options co; |
| 54 | if (!user.empty()) co.user(user); |
| 55 | if (!password.empty()) co.password(password); |
| 56 | sender = c.open_sender(url, co); |
| 57 | } |
| 58 | |
| 59 | void on_sendable(proton::sender &s) override { |
| 60 | while (s.credit() && sent < total) { |
nothing calls this directly
no test coverage detected