[ https://issues.apache.org/jira/browse/PROTON-1240?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15377015#comment-15377015 ]
Andrew Stitcher commented on PROTON-1240: ----------------------------------------- This seems to have missed the git-jira integration somehow: SHA 391a09fc807cec0a03a51e729d41e8a563481d89 > 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 > > 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