Go to the source code of this file.
|
| connect (socket, SIGNAL(encrypted()), this, SLOT(ready())) |
|
socket | connectToHostEncrypted ("imap.example.com", 993) |
|
socket | connectToHostEncrypted ("http.example.com", 443) |
|
| if (!socket.waitForEncrypted()) |
|
socket | write ("GET / HTTP/1.0\r\n\r\n") |
|
| while (socket.waitForReadyRead()) qDebug()<< socket.readAll().data() |
|
connect & | socket (encrypted()), receiver, SLOT(socketEncrypted()) |
|
socket | connectToHostEncrypted ("imap", 993) |
| [4] More...
|
|
socket | write ("1 CAPABILITY\r\n") |
|
socket | setCiphers ("DHE-RSA-AES256-SHA:DHE-DSS-AES256-SHA:AES256-SHA") |
|
| if (socket->waitForEncrypted(1000)) qDebug("Encrypted!") |
|
QSslError | error (QSslError::SelfSignedCertificate, cert.at(0)) |
|
expectedSslErrors | append (error) |
|
socket | ignoreSslErrors (expectedSslErrors) |
|
socket | connectToHostEncrypted ("server.tld", 443) |
|
◆ append()
◆ connect()
◆ connectToHostEncrypted() [1/4]
socket connectToHostEncrypted |
( |
"http.example.com" |
, |
|
|
443 |
|
|
) |
| |
◆ connectToHostEncrypted() [2/4]
socket connectToHostEncrypted |
( |
"imap" |
, |
|
|
993 |
|
|
) |
| |
◆ connectToHostEncrypted() [3/4]
socket connectToHostEncrypted |
( |
"imap.example.com" |
, |
|
|
993 |
|
|
) |
| |
◆ connectToHostEncrypted() [4/4]
socket connectToHostEncrypted |
( |
"server.tld" |
, |
|
|
443 |
|
|
) |
| |
◆ error()
◆ if() [1/2]
if |
( |
!socket. |
waitForEncrypted() | ) |
|
◆ if() [2/2]
if |
( |
socket-> |
waitForEncrypted1000 | ) |
|
◆ ignoreSslErrors()
◆ setCiphers()
socket setCiphers |
( |
"DHE-RSA-AES256-SHA:DHE-DSS-AES256-SHA:AES256-SHA" |
| ) |
|
◆ socket()
◆ while()
while |
( |
socket. |
waitForReadyRead() | ) |
|
◆ write() [1/2]
socket write |
( |
"1 CAPABILITY\r\n" |
| ) |
|
◆ write() [2/2]
◆ cert
◆ expectedSslErrors
◆ socket