NAME

Qt::Network::QSslSocket

PUBLIC METHODS

QSslSocket(QObject * parent)
QSslSocket(QObject * parent = 0)
~QSslSocket()
void abort()
void addCaCertificate(const QSslCertificate & certificate)
bool addCaCertificates(const QString & path, QSsl::EncodingFormat format, QRegExp::PatternSyntax syntax)
bool addCaCertificates(const QString & path, QSsl::EncodingFormat format, QRegExp::PatternSyntax syntax = QRegExp::FixedString)
bool addCaCertificates(const QString & path, QSsl::EncodingFormat format = QSsl::Pem, QRegExp::PatternSyntax syntax = QRegExp::FixedString)
static void addDefaultCaCertificate(const QSslCertificate & certificate)
static bool addDefaultCaCertificates(const QString & path, QSsl::EncodingFormat format, QRegExp::PatternSyntax syntax)
static bool addDefaultCaCertificates(const QString & path, QSsl::EncodingFormat format, QRegExp::PatternSyntax syntax = QRegExp::FixedString)
static bool addDefaultCaCertificates(const QString & path, QSsl::EncodingFormat format = QSsl::Pem, QRegExp::PatternSyntax syntax = QRegExp::FixedString)
bool atEnd()
qint64 bytesAvailable()
qint64 bytesToWrite()
bool canReadLine()
void close()
void connectToHostEncrypted(const QString & hostName, quint16 port, QFlags<QIODevice::OpenModeFlag> mode)
void connectToHostEncrypted(const QString & hostName, quint16 port, QFlags<QIODevice::OpenModeFlag> mode = QIODevice::ReadWrite)
void connectToHostEncrypted(const QString & hostName, quint16 port, const QString & sslPeerName, QFlags<QIODevice::OpenModeFlag> mode)
void connectToHostEncrypted(const QString & hostName, quint16 port, const QString & sslPeerName, QFlags<QIODevice::OpenModeFlag> mode = QIODevice::ReadWrite)
qint64 encryptedBytesAvailable()
qint64 encryptedBytesToWrite()
bool flush()
void ignoreSslErrors()
bool isEncrypted()
QSslCertificate localCertificate()
QSslSocket::SslMode mode()
QSslCertificate peerCertificate()
int peerVerifyDepth()
QSslSocket::PeerVerifyMode peerVerifyMode()
QSslKey privateKey()
QSsl::SslProtocol protocol()
QSslCipher sessionCipher()
void setCiphers(const QString & ciphers)
void setLocalCertificate(const QSslCertificate & certificate)
void setLocalCertificate(const QString & fileName, QSsl::EncodingFormat format)
void setLocalCertificate(const QString & fileName, QSsl::EncodingFormat format = QSsl::Pem)
void setPeerVerifyDepth(int depth)
void setPeerVerifyMode(QSslSocket::PeerVerifyMode mode)
void setPrivateKey(const QSslKey & key)
void setPrivateKey(const QString & fileName, QSsl::KeyAlgorithm algorithm, QSsl::EncodingFormat format, const QByteArray & passPhrase)
void setPrivateKey(const QString & fileName, QSsl::KeyAlgorithm algorithm, QSsl::EncodingFormat format, const QByteArray & passPhrase = QByteArray())
void setPrivateKey(const QString & fileName, QSsl::KeyAlgorithm algorithm, QSsl::EncodingFormat format = QSsl::Pem, const QByteArray & passPhrase = QByteArray())
void setPrivateKey(const QString & fileName, QSsl::KeyAlgorithm algorithm = QSsl::Rsa, QSsl::EncodingFormat format = QSsl::Pem, const QByteArray & passPhrase = QByteArray())
void setProtocol(QSsl::SslProtocol protocol)
void setReadBufferSize(qint64 size)
bool setSocketDescriptor(int socketDescriptor, QAbstractSocket::SocketState state, QFlags<QIODevice::OpenModeFlag> openMode)
bool setSocketDescriptor(int socketDescriptor, QAbstractSocket::SocketState state, QFlags<QIODevice::OpenModeFlag> openMode = QIODevice::ReadWrite)
bool setSocketDescriptor(int socketDescriptor, QAbstractSocket::SocketState state = QAbstractSocket::ConnectedState, QFlags<QIODevice::OpenModeFlag> openMode = QIODevice::ReadWrite)
void setSocketOption(QAbstractSocket::SocketOption option, const QVariant & value)
void setSslConfiguration(const QSslConfiguration & config)
QVariant socketOption(QAbstractSocket::SocketOption option)
QSslConfiguration sslConfiguration()
void startClientEncryption()
void startServerEncryption()
static bool supportsSsl()
bool waitForBytesWritten(int msecs)
bool waitForBytesWritten(int msecs = 30000)
bool waitForConnected(int msecs)
bool waitForConnected(int msecs = 30000)
bool waitForDisconnected(int msecs)
bool waitForDisconnected(int msecs = 30000)
bool waitForEncrypted(int msecs)
bool waitForEncrypted(int msecs = 30000)
bool waitForReadyRead(int msecs)
bool waitForReadyRead(int msecs = 30000)

ENUM VALUES

UnencryptedMode
SslClientMode
SslServerMode
VerifyNone
QueryPeer
VerifyPeer
AutoVerifyPeer

EXPORT

None by default.

AUTHOR

Dongxu Ma <dongxu@cpan.org>

COPYRIGHT AND LICENSE

Copyright (C) 2011 - 2011 by Dongxu Ma

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

See http://dev.perl.org/licenses/artistic.html