Connect to url
| 163 | |
| 164 | // Connect to url |
| 165 | receiver(proton::container& cont, const std::string& url, const std::string& address) |
| 166 | : work_queue_(0), closed_(false) |
| 167 | { |
| 168 | // NOTE:credit_window(0) disables automatic flow control. |
| 169 | // We will use flow control to match AMQP credit to buffer capacity. |
| 170 | cont.open_receiver(url+"/"+address, proton::receiver_options().credit_window(0), |
| 171 | proton::connection_options().handler(*this)); |
| 172 | } |
| 173 | |
| 174 | // Thread safe receive |
| 175 | proton::message receive() { |
no test coverage detected