| 94 | } |
| 95 | |
| 96 | std::string connection::url() const { |
| 97 | connection_context& cc = connection_context::get(pn_object()); |
| 98 | if (!active()) throw proton::error("No active connection"); |
| 99 | return cc.active_url_; |
| 100 | } |
| 101 | |
| 102 | receiver_range connection::receivers() const { |
| 103 | pn_link_t *lnk = pn_link_head(pn_object(), 0); |