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

ASF GitHub Bot commented on PROTON-2307:
----------------------------------------

astitcher commented on a change in pull request #278:
URL: https://github.com/apache/qpid-proton/pull/278#discussion_r564574586



##########
File path: cpp/src/connection.cpp
##########
@@ -192,6 +193,15 @@ std::vector<symbol> connection::desired_capabilities() 
const {
     return get_multiple<std::vector<symbol> >(caps);
 }
 
+std::map<symbol, value> connection::properties() const {
+    std::map<symbol, value> props_ret;
+    value props(pn_connection_remote_properties(pn_object()));
+    if (!props.empty()) {
+        get(props, props_ret);
+    }
+    return props_ret;
+}
+

Review comment:
       I agree this is as efficient as my version - My preference is for 
multiple returns over (IMO) meaningless local variables. But just my preference 
- this is fine.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> Allow access to connection properties in cpp binding
> ----------------------------------------------------
>
>                 Key: PROTON-2307
>                 URL: https://issues.apache.org/jira/browse/PROTON-2307
>             Project: Qpid Proton
>          Issue Type: Improvement
>          Components: cpp-binding
>    Affects Versions: proton-c-0.33.0
>            Reporter: Pete Fawcett
>            Priority: Minor
>              Labels: enhancement
>
> I would like to be able to set the "custom" properties on a connection using 
> the C++ bindings.
> The initial reason for this is to allow a client program to set the 
> "qpid.client_process" property on a connection to a broker as this is useful 
> when identifying the connection on the QMF console.
> I have written code to enable this and hope to submit a pull request soon.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org

Reply via email to