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

Method on_connection_open

cpp/examples/ssl.cpp:62–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60 proton::listener listener;
61
62 void on_connection_open(proton::connection &c) override {
63 std::cout << "Inbound server connection connected via SSL. Protocol: " <<
64 c.transport().ssl().protocol() << std::endl;
65 listener.stop(); // Just expecting the one connection.
66
67 // Go and do default inbound open stuff too
68 messaging_handler::on_connection_open(c);
69 }
70
71 void on_transport_error(proton::transport &t) override {
72 listener.stop();

Callers

nothing calls this directly

Calls 4

protocolMethod · 0.80
sslMethod · 0.45
transportMethod · 0.45
stopMethod · 0.45

Tested by

no test coverage detected