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

Method default_session

cpp/src/connection.cpp:133–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131}
132
133session connection::default_session() {
134 connection_context& ctx = connection_context::get(pn_object());
135 if (!ctx.default_session) {
136 // Note we can't use a proton::session here because we don't want to own
137 // a session reference. The connection owns the session, owning it here as well
138 // would create a circular ownership.
139 ctx.default_session = pn_session(pn_object());
140 pn_session_open(ctx.default_session);
141 }
142 return make_wrapper(ctx.default_session);
143}
144
145sender connection::open_sender(const std::string &addr) {
146 return open_sender(addr, sender_options());

Callers 3

on_connection_openMethod · 0.45
open_senderMethod · 0.45
open_receiverMethod · 0.45

Calls 4

pn_sessionFunction · 0.85
pn_session_openFunction · 0.85
make_wrapperFunction · 0.85
getFunction · 0.70

Tested by 1

on_connection_openMethod · 0.36