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

Method open_sender

cpp/src/proactor_container_impl.cpp:383–398  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

381}
382
383returned<sender> container::impl::open_sender(const std::string &urlstr, const proton::sender_options &o1, const connection_options &o2)
384{
385 proton::url url(urlstr);
386 pn_link_t* pnl = 0;
387 pn_connection_t* pnc = 0;
388 {
389 GUARD(lock_);
390 proton::sender_options lopts(sender_options_);
391 lopts.update(o1);
392 pnc = make_connection_lh(url, o2);
393 connection conn(make_wrapper(pnc));
394 pnl = unwrap(conn.default_session().open_sender(url.path(), lopts));
395 }
396 start_connection(url, pnc); // See comment on start_connection
397 return make_returned<sender>(pnl); // Unsafe returned pointer
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);

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