| 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(); |