cutelyst 4.3.0
A C++ Web Framework built on top of Qt, using the simple approach of Catalyst (Perl) framework.
Cutelyst::SslSocket Class Referencefinal
Inheritance diagram for Cutelyst::SslSocket:

Signals

void finished ()
 

Public Member Functions

 SslSocket (Cutelyst::Engine *engine, QObject *parent=nullptr)
 
void connectionClose () override final
 
bool flush () override final
 
bool requestFinished () override final
 
void socketDisconnected ()
 
- Public Member Functions inherited from QSslSocket
 QSslSocket (QObject *parent)
 
void alertReceived (QSsl::AlertLevel level, QSsl::AlertType type, const QString &description)
 
void alertSent (QSsl::AlertLevel level, QSsl::AlertType type, const QString &description)
 
virtual bool atEnd () const const override
 
virtual qint64 bytesAvailable () const const override
 
virtual qint64 bytesToWrite () const const override
 
virtual bool canReadLine () const const override
 
virtual void close () override
 
void connectToHostEncrypted (const QString &hostName, quint16 port, const QString &sslPeerName, QIODeviceBase::OpenMode mode, QAbstractSocket::NetworkLayerProtocol protocol)
 
void connectToHostEncrypted (const QString &hostName, quint16 port, QIODeviceBase::OpenMode mode, QAbstractSocket::NetworkLayerProtocol protocol)
 
void continueInterruptedHandshake ()
 
void encrypted ()
 
qint64 encryptedBytesAvailable () const const
 
qint64 encryptedBytesToWrite () const const
 
void encryptedBytesWritten (qint64 written)
 
void handshakeInterruptedOnError (const QSslError &error)
 
void ignoreSslErrors ()
 
void ignoreSslErrors (const QList< QSslError > &errors)
 
bool isEncrypted () const const
 
QSslCertificate localCertificate () const const
 
QList< QSslCertificatelocalCertificateChain () const const
 
QSslSocket::SslMode mode () const const
 
void modeChanged (QSslSocket::SslMode mode)
 
void newSessionTicketReceived ()
 
QList< QOcspResponseocspResponses () const const
 
QSslCertificate peerCertificate () const const
 
QList< QSslCertificatepeerCertificateChain () const const
 
int peerVerifyDepth () const const
 
void peerVerifyError (const QSslError &error)
 
QSslSocket::PeerVerifyMode peerVerifyMode () const const
 
QString peerVerifyName () const const
 
void preSharedKeyAuthenticationRequired (QSslPreSharedKeyAuthenticator *authenticator)
 
QSslKey privateKey () const const
 
QSsl::SslProtocol protocol () const const
 
virtual void resume () override
 
QSslCipher sessionCipher () const const
 
QSsl::SslProtocol sessionProtocol () const const
 
void setLocalCertificate (const QSslCertificate &certificate)
 
void setLocalCertificate (const QString &path, QSsl::EncodingFormat format)
 
void setLocalCertificateChain (const QList< QSslCertificate > &localChain)
 
void setPeerVerifyDepth (int depth)
 
void setPeerVerifyMode (QSslSocket::PeerVerifyMode mode)
 
void setPeerVerifyName (const QString &hostName)
 
void setPrivateKey (const QSslKey &key)
 
void setPrivateKey (const QString &fileName, QSsl::KeyAlgorithm algorithm, QSsl::EncodingFormat format, const QByteArray &passPhrase)
 
void setProtocol (QSsl::SslProtocol protocol)
 
virtual void setReadBufferSize (qint64 size) override
 
virtual bool setSocketDescriptor (qintptr socketDescriptor, QAbstractSocket::SocketState state, QIODeviceBase::OpenMode openMode) override
 
virtual void setSocketOption (QAbstractSocket::SocketOption option, const QVariant &value) override
 
void setSslConfiguration (const QSslConfiguration &configuration)
 
virtual QVariant socketOption (QAbstractSocket::SocketOption option) override
 
QSslConfiguration sslConfiguration () const const
 
void sslErrors (const QList< QSslError > &errors)
 
QList< QSslErrorsslHandshakeErrors () const const
 
void startClientEncryption ()
 
void startServerEncryption ()
 
virtual bool waitForBytesWritten (int msecs) override
 
virtual bool waitForConnected (int msecs) override
 
virtual bool waitForDisconnected (int msecs) override
 
bool waitForEncrypted (int msecs)
 
virtual bool waitForReadyRead (int msecs) override
 
- Public Member Functions inherited from QTcpSocket
 QTcpSocket (QObject *parent)
 
- Public Member Functions inherited from QAbstractSocket
 QAbstractSocket (QAbstractSocket::SocketType socketType, QObject *parent)
 
void abort ()
 
virtual bool bind (const QHostAddress &address, quint16 port, QAbstractSocket::BindMode mode)
 
bool bind (QHostAddress::SpecialAddress addr, quint16 port, QAbstractSocket::BindMode mode)
 
bool bind (quint16 port, QAbstractSocket::BindMode mode)
 
void connected ()
 
void connectToHost (const QHostAddress &address, quint16 port, QIODeviceBase::OpenMode openMode)
 
virtual void connectToHost (const QString &hostName, quint16 port, QIODeviceBase::OpenMode openMode, QAbstractSocket::NetworkLayerProtocol protocol)
 
void disconnected ()
 
virtual void disconnectFromHost ()
 
QAbstractSocket::SocketError error () const const
 
void errorOccurred (QAbstractSocket::SocketError socketError)
 
bool flush ()
 
void hostFound ()
 
virtual bool isSequential () const const override
 
bool isValid () const const
 
QHostAddress localAddress () const const
 
quint16 localPort () const const
 
QAbstractSocket::PauseModes pauseMode () const const
 
QHostAddress peerAddress () const const
 
QString peerName () const const
 
quint16 peerPort () const const
 
QString protocolTag () const const
 
QNetworkProxy proxy () const const
 
void proxyAuthenticationRequired (const QNetworkProxy &proxy, QAuthenticator *authenticator)
 
qint64 readBufferSize () const const
 
void setPauseMode (QAbstractSocket::PauseModes pauseMode)
 
void setProtocolTag (const QString &tag)
 
void setProxy (const QNetworkProxy &networkProxy)
 
virtual qintptr socketDescriptor () const const
 
QAbstractSocket::SocketType socketType () const const
 
QAbstractSocket::SocketState state () const const
 
void stateChanged (QAbstractSocket::SocketState socketState)
 
- Public Member Functions inherited from QIODevice
 QIODevice (QObject *parent)
 
void aboutToClose ()
 
void bytesWritten (qint64 bytes)
 
void channelBytesWritten (int channel, qint64 bytes)
 
void channelReadyRead (int channel)
 
void commitTransaction ()
 
int currentReadChannel () const const
 
int currentWriteChannel () const const
 
QString errorString () const const
 
bool getChar (char *c)
 
bool isOpen () const const
 
bool isReadable () const const
 
bool isTextModeEnabled () const const
 
bool isTransactionStarted () const const
 
bool isWritable () const const
 
virtual bool open (QIODeviceBase::OpenMode mode)
 
QIODeviceBase::OpenMode openMode () const const
 
qint64 peek (char *data, qint64 maxSize)
 
QByteArray peek (qint64 maxSize)
 
virtual qint64 pos () const const
 
bool putChar (char c)
 
qint64 read (char *data, qint64 maxSize)
 
QByteArray read (qint64 maxSize)
 
QByteArray readAll ()
 
int readChannelCount () const const
 
void readChannelFinished ()
 
qint64 readLine (char *data, qint64 maxSize)
 
QByteArray readLine (qint64 maxSize)
 
void readyRead ()
 
virtual bool reset ()
 
void rollbackTransaction ()
 
virtual bool seek (qint64 pos)
 
void setCurrentReadChannel (int channel)
 
void setCurrentWriteChannel (int channel)
 
void setTextModeEnabled (bool enabled)
 
virtual qint64 size () const const
 
qint64 skip (qint64 maxSize)
 
void startTransaction ()
 
void ungetChar (char c)
 
qint64 write (const char *data)
 
qint64 write (const char *data, qint64 maxSize)
 
qint64 write (const QByteArray &data)
 
int writeChannelCount () const const
 
- Public Member Functions inherited from QObject
 QObject (QObject *parent)
 
bool blockSignals (bool block)
 
const QObjectListchildren () const const
 
QMetaObject::Connection connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const const
 
void deleteLater ()
 
void destroyed (QObject *obj)
 
bool disconnect (const char *signal, const QObject *receiver, const char *method) const const
 
bool disconnect (const QObject *receiver, const char *method) const const
 
void dumpObjectInfo () const const
 
void dumpObjectTree () const const
 
QList< QByteArraydynamicPropertyNames () const const
 
virtual bool event (QEvent *e)
 
virtual bool eventFilter (QObject *watched, QEvent *event)
 
findChild (const QString &name, Qt::FindChildOptions options) const const
 
QList< T > findChildren (const QRegularExpression &re, Qt::FindChildOptions options) const const
 
QList< T > findChildren (const QString &name, Qt::FindChildOptions options) const const
 
QList< T > findChildren (Qt::FindChildOptions options) const const
 
bool inherits (const char *className) const const
 
void installEventFilter (QObject *filterObj)
 
bool isQuickItemType () const const
 
bool isWidgetType () const const
 
bool isWindowType () const const
 
void killTimer (int id)
 
virtual const QMetaObjectmetaObject () const const
 
void moveToThread (QThread *targetThread)
 
QString objectName () const const
 
void objectNameChanged (const QString &objectName)
 
QObjectparent () const const
 
QVariant property (const char *name) const const
 
 Q_CLASSINFO (Name, Value)
 
 Q_DISABLE_COPY (Class)
 
 Q_DISABLE_COPY_MOVE (Class)
 
 Q_EMIT Q_EMIT
 
 Q_ENUM (...)
 
 Q_ENUM_NS (...)
 
 Q_ENUMS (...)
 
 Q_FLAG (...)
 
 Q_FLAG_NS (...)
 
 Q_FLAGS (...)
 
 Q_GADGET Q_GADGET
 
 Q_GADGET_EXPORT (EXPORT_MACRO)
 
 Q_INTERFACES (...)
 
 Q_INVOKABLE Q_INVOKABLE
 
 Q_MOC_INCLUDE Q_MOC_INCLUDE
 
 Q_NAMESPACE Q_NAMESPACE
 
 Q_NAMESPACE_EXPORT (EXPORT_MACRO)
 
 Q_OBJECT Q_OBJECT
 
 Q_PROPERTY (...)
 
 Q_REVISION Q_REVISION
 
 Q_SET_OBJECT_NAME (Object)
 
 Q_SIGNAL Q_SIGNAL
 
 Q_SIGNALS Q_SIGNALS
 
 Q_SLOT Q_SLOT
 
 Q_SLOTS Q_SLOTS
 
qobject_cast (const QObject *object)
 
qobject_cast (QObject *object)
 
 QT_NO_NARROWING_CONVERSIONS_IN_CONNECT QT_NO_NARROWING_CONVERSIONS_IN_CONNECT
 
void removeEventFilter (QObject *obj)
 
void setObjectName (const QString &name)
 
void setObjectName (QAnyStringView name)
 
void setParent (QObject *parent)
 
bool setProperty (const char *name, const QVariant &value)
 
bool signalsBlocked () const const
 
int startTimer (int interval, Qt::TimerType timerType)
 
int startTimer (std::chrono::milliseconds time, Qt::TimerType timerType)
 
QThreadthread () const const
 
- Public Member Functions inherited from Cutelyst::Socket
 Socket (bool secure, Engine *_engine)
 
void resetSocket ()
 

Additional Inherited Members

- Public Types inherited from QSslSocket
enum  AlertLevel
 
enum  AlertType
 
enum  ImplementedClass
 
enum  PeerVerifyMode
 
enum  SslMode
 
enum  SupportedFeature
 
- Public Types inherited from QAbstractSocket
enum  BindFlag
 
enum  NetworkLayerProtocol
 
enum  PauseMode
 
enum  SocketError
 
enum  SocketOption
 
enum  SocketState
 
enum  SocketType
 
- Public Types inherited from QIODeviceBase
enum  OpenModeFlag
 
- Static Public Member Functions inherited from QSslSocket
QString activeBackend ()
 
QList< QStringavailableBackends ()
 
QList< QSsl::ImplementedClassimplementedClasses (const QString &backendName)
 
bool isClassImplemented (QSsl::ImplementedClass cl, const QString &backendName)
 
bool isFeatureSupported (QSsl::SupportedFeature ft, const QString &backendName)
 
bool isProtocolSupported (QSsl::SslProtocol protocol, const QString &backendName)
 
bool setActiveBackend (const QString &backendName)
 
long sslLibraryBuildVersionNumber ()
 
QString sslLibraryBuildVersionString ()
 
long sslLibraryVersionNumber ()
 
QString sslLibraryVersionString ()
 
QList< QSsl::SupportedFeaturesupportedFeatures (const QString &backendName)
 
QList< QSsl::SslProtocolsupportedProtocols (const QString &backendName)
 
bool supportsSsl ()
 
- Static Public Member Functions inherited from QObject
QMetaObject::Connection connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, const QObject *context, Functor functor, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, Functor functor)
 
bool disconnect (const QMetaObject::Connection &connection)
 
bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method)
 
bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method)
 
bool disconnect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method)
 
QString tr (const char *sourceText, const char *disambiguation, int n)
 
- Public Attributes inherited from QSslSocket
 AccessDenied
 
 Alerts
 
 AutoVerifyPeer
 
 BadCertificate
 
 BadCertificateHashValue
 
 BadCertificateStatusResponse
 
 BadRecordMac
 
 Certificate
 
 CertificateExpired
 
 CertificateRequired
 
 CertificateRevoked
 
 CertificateUnknown
 
 CertificateUnobtainable
 
 CertificateVerification
 
 ClientSideAlpn
 
 CloseNotify
 
 DecodeError
 
 DecompressionFailure
 
 DecryptError
 
 DiffieHellman
 
 Dtls
 
 DtlsCookie
 
 EllipticCurve
 
 ExportRestriction
 
 Fatal
 
 HandshakeFailure
 
 IllegalParameter
 
 InappropriateFallback
 
 InsufficientSecurity
 
 InternalError
 
 Key
 
 MissingExtension
 
 NoApplicationProtocol
 
 NoCertificate
 
 NoRenegotiation
 
 Ocsp
 
 ProtocolVersion
 
 Psk
 
 QueryPeer
 
 RecordOverflow
 
 ServerSideAlpn
 
 SessionTicket
 
 Socket
 
 SslClientMode
 
 SslServerMode
 
 UnencryptedMode
 
 UnexpectedMessage
 
 Unknown
 
 UnknownAlertMessage
 
 UnknownCa
 
 UnknownPskIdentity
 
 UnrecognizedName
 
 UnsupportedCertificate
 
 UnsupportedExtension
 
 UserCancelled
 
 VerifyNone
 
 VerifyPeer
 
 Warning
 
- Public Attributes inherited from QAbstractSocket
 AddressInUseError
 
 AnyIPProtocol
 
typedef BindMode
 
 BoundState
 
 ClosingState
 
 ConnectedState
 
 ConnectingState
 
 ConnectionRefusedError
 
 DatagramTooLargeError
 
 DefaultForPlatform
 
 DontShareAddress
 
 HostLookupState
 
 HostNotFoundError
 
 IPv4Protocol
 
 IPv6Protocol
 
 KeepAliveOption
 
 ListeningState
 
 LowDelayOption
 
 MulticastLoopbackOption
 
 MulticastTtlOption
 
 NetworkError
 
 OperationError
 
 PathMtuSocketOption
 
typedef PauseModes
 
 PauseNever
 
 PauseOnSslErrors
 
 ProxyAuthenticationRequiredError
 
 ProxyConnectionClosedError
 
 ProxyConnectionRefusedError
 
 ProxyConnectionTimeoutError
 
 ProxyNotFoundError
 
 ProxyProtocolError
 
 ReceiveBufferSizeSocketOption
 
 RemoteHostClosedError
 
 ReuseAddressHint
 
 SctpSocket
 
 SendBufferSizeSocketOption
 
 ShareAddress
 
 SocketAccessError
 
 SocketAddressNotAvailableError
 
 SocketResourceError
 
 SocketTimeoutError
 
 SslHandshakeFailedError
 
 SslInternalError
 
 SslInvalidUserDataError
 
 TcpSocket
 
 TemporaryError
 
 TypeOfServiceOption
 
 UdpSocket
 
 UnconnectedState
 
 UnfinishedSocketOperationError
 
 UnknownNetworkLayerProtocol
 
 UnknownSocketError
 
 UnknownSocketType
 
 UnsupportedSocketOperationError
 
- Public Attributes inherited from QObject
typedef QObjectList
 
- Public Attributes inherited from QIODeviceBase
 Append
 
 ExistingOnly
 
 NewOnly
 
 NotOpen
 
typedef OpenMode
 
 ReadOnly
 
 ReadWrite
 
 Text
 
 Truncate
 
 Unbuffered
 
 WriteOnly
 
- Public Attributes inherited from Cutelyst::Socket
Engineengine
 
bool isSecure
 
qint8 processing
 
Protocolproto
 
ProtocolDataprotoData
 
QHostAddress remoteAddress
 
quint16 remotePort
 
QByteArray serverAddress
 
bool timeout
 
- Protected Member Functions inherited from QSslSocket
virtual qint64 readData (char *data, qint64 maxlen) override
 
virtual qint64 skipData (qint64 maxSize) override
 
virtual qint64 writeData (const char *data, qint64 len) override
 
- Protected Member Functions inherited from QAbstractSocket
virtual qint64 readLineData (char *data, qint64 maxlen) override
 
void setLocalAddress (const QHostAddress &address)
 
void setLocalPort (quint16 port)
 
void setPeerAddress (const QHostAddress &address)
 
void setPeerName (const QString &name)
 
void setPeerPort (quint16 port)
 
void setSocketError (QAbstractSocket::SocketError socketError)
 
void setSocketState (QAbstractSocket::SocketState state)
 
- Protected Member Functions inherited from QIODevice
void setErrorString (const QString &str)
 
void setOpenMode (QIODeviceBase::OpenMode openMode)
 
- Protected Member Functions inherited from QObject
virtual void childEvent (QChildEvent *event)
 
virtual void connectNotify (const QMetaMethod &signal)
 
virtual void customEvent (QEvent *event)
 
virtual void disconnectNotify (const QMetaMethod &signal)
 
bool isSignalConnected (const QMetaMethod &signal) const const
 
int receivers (const char *signal) const const
 
QObjectsender () const const
 
int senderSignalIndex () const const
 
virtual void timerEvent (QTimerEvent *event)
 
- Properties inherited from QObject
 objectName
 

Detailed Description

Definition at line 82 of file socket.h.

Constructor & Destructor Documentation

◆ SslSocket()

SslSocket::SslSocket ( Cutelyst::Engine engine,
QObject parent = nullptr 
)
explicit

Definition at line 108 of file socket.cpp.

Member Function Documentation

◆ connectionClose()

void SslSocket::connectionClose ( )
finaloverridevirtual

Implements Cutelyst::Socket.

Definition at line 119 of file socket.cpp.

◆ flush()

bool SslSocket::flush ( )
finaloverridevirtual

Implements Cutelyst::Socket.

Definition at line 134 of file socket.cpp.

◆ requestFinished()

bool SslSocket::requestFinished ( )
finaloverridevirtual

Implements Cutelyst::Socket.

Definition at line 125 of file socket.cpp.

◆ socketDisconnected()

void SslSocket::socketDisconnected ( )

Definition at line 139 of file socket.cpp.