You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Alan Conway (JIRA)" <ji...@apache.org> on 2017/04/27 01:02:04 UTC

[jira] [Created] (PROTON-1470) proactor api - flexible, parse-free addressing

Alan Conway created PROTON-1470:
-----------------------------------

             Summary: 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: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org