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

Method on_message

cpp/examples/client.cpp:68–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66 }
67
68 void on_message(proton::delivery &d, proton::message &response) override {
69 if (requests.empty()) return; // Spurious extra message!
70
71 std::cout << requests.front() << " => " << response.body() << std::endl;
72 requests.erase(requests.begin());
73
74 if (!requests.empty()) {
75 send_request();
76 } else {
77 d.connection().close();
78 }
79 }
80};
81
82int main(int argc, char **argv) {

Callers

nothing calls this directly

Calls 6

bodyMethod · 0.80
eraseMethod · 0.80
emptyMethod · 0.45
beginMethod · 0.45
closeMethod · 0.45
connectionMethod · 0.45

Tested by

no test coverage detected