Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
proton-0.13.0
-
None
Description
The trivial server code:
#include <proton/default_container.hpp> #include <proton/messaging_handler.hpp> #include <iostream> class ExampleHandler: public proton::messaging_handler { void on_container_start(proton::container& c) override { c.listen("localhost:5672"); } void on_connection_open(proton::connection& c) override { std::cout << "New incoming connection to " << c.virtual_host() << "\n"; } }; int main() { ExampleHandler h; proton::default_container(h).run(); }
Produces output:
New incoming to
When another trivial C++ client connects to it.