void on_start(proton::event &e) { connection = e.container().connect(url); connection.open_receiver(url.path()); std::cout << "server connected to " << url << std::endl; }
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)); }