On domingo, 27 de outubro de 2013 11:07:39, Kurt Pattyn wrote: > Hi, > > I would like to add secure sockets support to the QWebSocket class (see > QtWebSockets add-on at https://qt.gitorious.org/qtplayground/websockets). > Currently, a connection is made to a web socket server, as follows: > QWebSocket webSocket; > webSocket.open(QUrl(“ws://someserver”)); > > Internally, a QTcpSocket is created to set up the connection. > > Now, I have 3 options to add secure web sockets: > 1. Use a QSslSocket internally when the scheme of the URL is wss. > This would imply that all or most of the SSL related functionality of > QSslSocket should be exposed from the QWebSockets class > (addCaCertificate(), …), making the QWebSocket API quite humongous.
That's what QSslConfiguration is for. No cluttering the API, just two functions. > 3. Use an IOC principle > Supply a QTcpSocket or a QSslSocket to the constructor of QWebSocket. That might be interesting, depending on whether we want a pre-connected socket. But it shouldn't be the default way that people would use to connect. -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel Open Source Technology Center
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Development mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/development
