Esempio n. 1
0
 void on_connection_open(proton::event &e, proton::connection &c) override {
     std::cout << "Inbound server connection connected via SSL.  Protocol: " <<
         c.transport().ssl().protocol() << std::endl;
     if (c.transport().sasl().outcome() == sasl::OK) {
         std::string subject = c.transport().ssl().remote_subject();
         std::cout << "Inbound client certificate identity " << find_CN(subject) << std::endl;
     }
     else {
         std::cout << "Inbound client authentication failed" <<std::endl;
         c.close();
     }
     inbound_listener.close();
 }
 void on_connection_open(proton::connection &c) override {
     std::cout << "unexpected connection event on main handler" << std::endl;
     c.close();
 }
 void on_connection_open(proton::connection &c) override {
     std::cout << "connection events going to handler_2" << std::endl;
     std::cout << "connection max_frame_size: " << c.transport().max_frame_size() <<
         ", idle timeout: " << c.transport().idle_timeout() << std::endl;
     c.close();
 }