Esempio n. 1
0
 void unsubscribe(proton::sender lnk) {
     std::string address = lnk.local_source().address();
     
     if (queues_.get(address).unsubscribe(lnk)) {
         queues_.erase(address);
     }
 }
Esempio n. 2
0
 void on_sender_open(proton::sender &sender) override {
     if (sender.remote_source().dynamic()) {
         sender.local_source().address(generate_address());
         senders[sender.local_source().address()] = sender;
     }
 }