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

Method on_message

cpp/src/reconnect_test.cpp:121–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119 }
120
121 void on_message(proton::delivery & d, proton::message & m) override {
122 ++messages_;
123 proton::connection c = d.connection();
124 if (messages_==expect_) close(c);
125 else d.accept();
126 }
127
128 void on_transport_error(proton::transport & ) override {
129 // If we get an error then (try to) stop the listener

Callers

nothing calls this directly

Calls 2

connectionMethod · 0.45
acceptMethod · 0.45

Tested by

no test coverage detected