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

Function main

cpp/examples/connection_options.cpp:62–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60};
61
62int 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}

Callers

nothing calls this directly

Calls 7

connection_optionsClass · 0.50
durationClass · 0.50
idle_timeoutMethod · 0.45
max_frame_sizeMethod · 0.45
runMethod · 0.45
whatMethod · 0.45

Tested by

no test coverage detected