[
https://issues.apache.org/jira/browse/PROTON-2540?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17539542#comment-17539542
]
ASF GitHub Bot commented on PROTON-2540:
----------------------------------------
astitcher commented on code in PR #370:
URL: https://github.com/apache/qpid-proton/pull/370#discussion_r877036941
##########
cpp/src/connection.cpp:
##########
@@ -93,6 +93,12 @@ session_range connection::sessions() const {
return
session_range(session_iterator(make_wrapper(pn_session_head(pn_object(), 0))));
}
+std::string connection::url() const {
+ connection_context& cc = connection_context::get(pn_object());
+ if(!active()) throw proton::error("No active connection");
Review Comment:
typo: No space after 'if'
> [cpp] Provide a way to query proton::connection for the url it was created
> with
> -------------------------------------------------------------------------------
>
> Key: PROTON-2540
> URL: https://issues.apache.org/jira/browse/PROTON-2540
> Project: Qpid Proton
> Issue Type: New Feature
> Components: cpp-binding
> Reporter: Rakhi Kumari
> Assignee: Rakhi Kumari
> Priority: Major
>
> Provide a way to connection.url() to identify a connection in a trivial
> connection handler.
--
This message was sent by Atlassian Jira
(v8.20.7#820007)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]