Andrew Stitcher created PROTON-1240:
---------------------------------------

             Summary: 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
            Reporter: Andrew Stitcher
            Assignee: Cliff Jansen
             Fix For: 0.13.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}




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to