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

Method open_receiver

cpp/src/proactor_container_impl.cpp:400–414  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

398}
399
400returned<receiver> container::impl::open_receiver(const std::string &urlstr, const proton::receiver_options &o1, const connection_options &o2) {
401 proton::url url(urlstr);
402 pn_link_t* pnl = 0;
403 pn_connection_t* pnc = 0;
404 {
405 GUARD(lock_);
406 proton::receiver_options lopts(receiver_options_);
407 lopts.update(o1);
408 pnc = make_connection_lh(url, o2);
409 connection conn(make_wrapper(pnc));
410 pnl = unwrap(conn.default_session().open_receiver(url.path(), lopts));
411 }
412 start_connection(url, pnc); // See comment on start_connection
413 return make_returned<receiver>(pnl);
414}
415
416pn_listener_t* container::impl::listen_common_lh(const std::string& addr) {
417 if (stopping_)

Callers

nothing calls this directly

Calls 5

make_wrapperFunction · 0.85
unwrapFunction · 0.85
updateMethod · 0.45
default_sessionMethod · 0.45
pathMethod · 0.45

Tested by

no test coverage detected