void on_connection_open(proton::connection &c) override { c.open_sender(url.path()); }
void on_container_start(proton::container &c) override { proton::source_options opts; set_filter(opts, "colour = 'green'"); proton::connection conn = c.connect(url); conn.open_receiver(url.path(), proton::receiver_options().source(opts)); }
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)); }
void on_start(proton::event &e) { e.connection().open(); e.connection().open_receiver(url.path()); std::cout << "server connected to " << url << std::endl; }
void on_start(proton::event &e) { proton::connection conn = e.container().connect(url); conn.open_receiver(url.path()); conn.open_sender(url.path()); }
void on_start(proton::event &e) { e.connection().open(); sender = e.connection().open_sender(url.path()); receiver = e.connection().open_receiver("", proton::link_options().dynamic_address(true)); }