Uploaded image for project: 'Qpid'
  1. Qpid
  2. QPID-2049

Examples don't allow use of SSL

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • 0.5
    • None
    • C++ Client
    • None

    Description

      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();

      Attachments

        Activity

          People

            Unassigned Unassigned
            gsim Gordon Sim
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: