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

Method on_connection_open

cpp/examples/flow_control.cpp:226–231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

224 }
225
226 void on_connection_open(proton::connection &c) override {
227 if (c.active()) {
228 // outbound connection
229 c.open_receiver("flow_example", proton::receiver_options().handler(receive_handler).credit_window(0));
230 }
231 }
232
233 void on_connection_close(proton::connection &) override {
234 listener.stop();

Callers

nothing calls this directly

Calls 4

activeMethod · 0.80
receiver_optionsClass · 0.50
open_receiverMethod · 0.45
handlerMethod · 0.45

Tested by

no test coverage detected