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

Method send

cpp/examples/reconnect_client.cpp:90–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88 }
89
90 void send(proton::sender& s) {
91 // Only send with credit and only allow one outstanding message
92 while (s.credit() && sent < received+1) {
93 std::map<std::string, int> m;
94 m["sequence"] = sent + 1;
95
96 proton::message msg;
97 msg.id(sent + 1);
98 msg.body(m);
99
100 std::cout << "Sending: " << sent+1 << std::endl;
101 s.send(msg);
102 sent++;
103 }
104 }
105
106 void on_sender_open(proton::sender & s) override {
107 sender = s;

Callers

nothing calls this directly

Calls 3

bodyMethod · 0.80
creditMethod · 0.45
idMethod · 0.45

Tested by

no test coverage detected