| 60 | }; |
| 61 | |
| 62 | int main(int argc, char **argv) { |
| 63 | try { |
| 64 | std::string url = argc > 1 ? argv[1] : "127.0.0.1:5672/examples"; |
| 65 | main_handler handler(url); |
| 66 | proton::container container(handler); |
| 67 | // Global connection options for future connections on container. |
| 68 | container.client_connection_options(connection_options().max_frame_size(12345).idle_timeout(proton::duration(15000))); |
| 69 | container.run(); |
| 70 | return 0; |
| 71 | } catch (const std::exception& e) { |
| 72 | std::cerr << e.what() << std::endl; |
| 73 | } |
| 74 | return 1; |
| 75 | } |
nothing calls this directly
no test coverage detected