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

Method on_container_start

cpp/examples/colour_send.cpp:52–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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) {

Callers

nothing calls this directly

Calls 4

emptyMethod · 0.45
userMethod · 0.45
passwordMethod · 0.45
open_senderMethod · 0.45

Tested by

no test coverage detected