MCPcopy Create free account
hub / github.com/apache/qpid-proton / receiver

Method receiver

cpp/examples/multithreaded_client_flow_control.cpp:165–172  ·  view source on GitHub ↗

Connect to url

Source from the content-addressed store, hash-verified

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() {

Callers 4

on_messageMethod · 0.45
on_messageMethod · 0.45
on_messageMethod · 0.45
on_messageMethod · 0.45

Calls 4

receiver_optionsClass · 0.50
connection_optionsClass · 0.50
open_receiverMethod · 0.45
handlerMethod · 0.45

Tested by

no test coverage detected