[
https://issues.apache.org/jira/browse/PROTON-1470?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15985834#comment-15985834
]
Alan Conway commented on PROTON-1470:
-------------------------------------
Review request https://reviews.apache.org/r/58774
> proactor api - flexible, parse-free addressing
> ----------------------------------------------
>
> Key: PROTON-1470
> URL: https://issues.apache.org/jira/browse/PROTON-1470
> Project: Qpid Proton
> Issue Type: Bug
> Components: proton-c
> Affects Versions: 0.17.0
> Reporter: Alan Conway
> Assignee: Alan Conway
> Fix For: 0.18.0
>
>
> pn_proactor_connect and listen take a const char* string as the network
> address. This creates ambiguity about what the string means. URLs are complex
> to parse and construct and pn_url_t has been deprecated because it does not
> follow the URL standards well. Ad-hoc string formats like "host:port" are
> confusing since IPv6 host addresses can contains ":" characters.
> Provide a simple pn_netaddr_t that can
> - provide a unquoted, separate host and port strings to connect and listen
> - inspect incoming addresses as standard struct sockaddr
> - get a readable, but not parsable, string from any network address
> - is extensible, in a binary compatible way, to support other address types
> for connect/listen in future
> Note it is not a requirement (yet) to be able to connect/listen using an
> arbitrary sockaddr but it should be possible to add such support in future in
> a source and binary compatible way.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]