示例#1
0
    void on_start(proton::event &e) {
        connection = e.container().connect(url);
        connection.open_receiver(url.path());

        std::cout << "server connected to " << url << std::endl;
    }
示例#2
0
 void on_connection_open(proton::event &e, proton::connection &c) override {
     sender = c.open_sender(url.path());
     receiver = c.open_receiver("", proton::link_options().dynamic_address(true));
 }