qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marnie McCormack (JIRA)" <qpid-...@incubator.apache.org>
Subject [jira] Updated: (QPID-2049) Examples don't allow use of SSL
Date Tue, 15 Dec 2009 11:41:18 GMT

     [ https://issues.apache.org/jira/browse/QPID-2049?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Marnie McCormack updated QPID-2049:
-----------------------------------

    Fix Version/s:     (was: 0.6)
                   0.7

Moving items unlikely to be in 0.6 out to 0.7 (since not in progress)

> Examples don't allow use of SSL
> -------------------------------
>
>                 Key: QPID-2049
>                 URL: https://issues.apache.org/jira/browse/QPID-2049
>             Project: Qpid
>          Issue Type: Bug
>          Components: C++ Client
>    Affects Versions: 0.5
>            Reporter: Gordon Sim
>            Priority: Minor
>             Fix For: 0.7
>
>
> Need to apply change similar to following patch to all examples:
> Index: examples/direct/declare_queues.cpp
> ===================================================================
> --- examples/direct/declare_queues.cpp  (revision 797423)
> +++ examples/direct/declare_queues.cpp  (working copy)
> @@ -53,12 +53,14 @@
>  int main(int argc, char** argv) {
> -    const char* host = argc>1 ? argv[1] : "127.0.0.1";
> -    int port = argc>2 ? atoi(argv[2]) : 5672;
> +    ConnectionSettings settings;
> +    if (argc>1) settings.host = argv[1];
> +    if (argc>2) settings.port = atoi(argv[2]);
> +    if (argc>3) settings.protocol = argv[3];
>      Connection connection;
>      try {
> -      connection.open(host, port);
> +      connection.open(settings);
>        Session session =  connection.newSession();

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


Mime
View raw message