// Thread safe
 void close() {
     work_queue()->add([=]() { sender_.connection().close(); });
 }
Exemplo n.º 2
0
 void on_start(proton::event &e) {
     sender = e.container().open_sender(url);
     // Create a receiver with a dynamically chosen unique address.
     receiver = sender.connection().open_receiver("", proton::link_options().dynamic_address(true));
 }