[ 
https://issues.apache.org/jira/browse/PROTON-2540?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17539541#comment-17539541
 ] 

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:
   type: 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]

Reply via email to