Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-30733

server side QSslSocket

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Duplicate
    • Icon: P3: Somewhat important P3: Somewhat important
    • 6.4
    • Some future release
    • None

      It would be nice if a QSslServer would be created, instead of reimplementing QTcpServer. Like:

      QSslServer *sslServer = new QSslServer(this);
      sslServer->setPrivateKey(&key);
      sslServer->setLocalCertificate(&cert);
      if(!sslServer->listen(QHostAddress::Any, 1025)){
      std::cout << qPrintable(sslServer->errorString) << std::endl;
      }else{
      connect(sslServer, SIGNAL(newConnection()),
      this, SLOT(handleNewConnection()));
      }
      ......
      while(sslServer->hasPendingConnections()){
      QSslSocket *sslSocket = new QSslSocket(this);
      connect(sslSocket,.........
      }

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            richmoore Richard Moore (qtnetwork)
            teodori.serge Teodori Serge
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes