QtNetwork/qsslsocket.h Source File
Go to the documentation of this file.
66 class QSslSocketPrivate;
88 void connectToHostEncrypted(
const QString &hostName,
quint16 port, OpenMode
mode = ReadWrite);
89 void connectToHostEncrypted(
const QString &hostName,
quint16 port,
const QString &sslPeerName, OpenMode
mode = ReadWrite);
91 OpenMode openMode = ReadWrite);
98 bool isEncrypted()
const;
106 int peerVerifyDepth()
const;
107 void setPeerVerifyDepth(
int depth);
109 QString peerVerifyName()
const;
110 void setPeerVerifyName(
const QString &hostName);
125 qint64 encryptedBytesAvailable()
const;
126 qint64 encryptedBytesToWrite()
const;
141 void setPrivateKey(
const QSslKey &key);
150 void setCiphers(
const QString &ciphers);
164 static void addDefaultCaCertificate(
const QSslCertificate &certificate);
171 bool waitForEncrypted(
int msecs = 30000);
178 static bool supportsSsl();
182 void startClientEncryption();
183 void startServerEncryption();
184 void ignoreSslErrors();
188 void peerVerifyError(
const QSslError &error);
191 void encryptedBytesWritten(
qint64 totalBytes);
214 friend class QSslSocketBackendPrivate;
217 #endif // QT_NO_OPENSSL
221 #ifndef QT_NO_OPENSSL
qint64 bytesAvailable() const
qint64 writeData(const char *data, qint64 len)
#define Q_PRIVATE_SLOT(d, signature)
void setSocketOption(QAbstractSocket::SocketOption option, const QVariant &value)
QVariant socketOption(QAbstractSocket::SocketOption option)
bool waitForReadyRead(int msecs=30000)
void disconnectFromHostImplementation()
qint64 readData(char *data, qint64 maxlen)
#define QT_BEGIN_NAMESPACE
GLsizei GLsizei GLenum GLenum const GLvoid * data
GLenum GLsizei GLenum format
bool setSocketDescriptor(int socketDescriptor, SocketState state=ConnectedState, OpenMode openMode=ReadWrite)
bool waitForDisconnected(int msecs=30000)
bool waitForConnected(int msecs=30000)
void setReadBufferSize(qint64 size)
GLsizei const GLfloat * value
void connectToHostImplementation(const QString &hostName, quint16 port, OpenMode mode=ReadWrite)
GLint GLint GLsizei GLsizei GLsizei depth
bool waitForBytesWritten(int msecs=30000)
qint64 bytesToWrite() const