[ https://issues.apache.org/jira/browse/PROTON-1240?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrew Stitcher resolved PROTON-1240. ------------------------------------- Resolution: Fixed Fix Version/s: 0.14.0 > proton::connection::virtual_host not filled in on server side. > -------------------------------------------------------------- > > Key: PROTON-1240 > URL: https://issues.apache.org/jira/browse/PROTON-1240 > Project: Qpid Proton > Issue Type: Bug > Components: cpp-binding > Affects Versions: 0.13.0 > Reporter: Andrew Stitcher > Assignee: Andrew Stitcher > Fix For: 0.14.0 > > > The trivial server code: > {noformat} > #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(); > } > {noformat} > Produces output: > {noformat} > New incoming to > {noformat} > When another trivial C++ client connects to it. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org For additional commands, e-mail: dev-h...@qpid.apache.org