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

Public Member Functions

 ProtocolWebSocket (Server *server)
ProtocolDatacreateData (Socket *sock) const override final
void parse (Socket *sock, QIODevice *io) const override final
Type type () const override
Public Member Functions inherited from Cutelyst::Protocol
 Protocol (const Server *server)
QIODevicecreateBody (qint64 contentLength) const

Static Public Member Functions

static QByteArray createWebsocketCloseReply (const QString &msg, quint16 closeCode)
static QByteArray createWebsocketHeader (quint8 opcode, quint64 len)

Additional Inherited Members

Public Types inherited from Cutelyst::Protocol
enum class  Type {
  Unknown , Http11 , Http11Websocket , Http2 ,
  FastCGI1
}
Public Attributes inherited from Cutelyst::Protocol
int m_bufferSize
char * m_postBuffer
qint64 m_postBuffering
qint64 m_postBufferSize
bool const useStats

Detailed Description

Definition at line 13 of file protocolwebsocket.h.

Constructor & Destructor Documentation

◆ ProtocolWebSocket()

ProtocolWebSocket::ProtocolWebSocket ( Server * server)
explicit

Definition at line 22 of file protocolwebsocket.cpp.

◆ ~ProtocolWebSocket()

ProtocolWebSocket::~ProtocolWebSocket ( )
overridevirtual

Definition at line 28 of file protocolwebsocket.cpp.

Member Function Documentation

◆ createData()

ProtocolData * ProtocolWebSocket::createData ( Socket * sock) const
finaloverridevirtual

Implements Cutelyst::Protocol.

Definition at line 138 of file protocolwebsocket.cpp.

◆ createWebsocketCloseReply()

QByteArray ProtocolWebSocket::createWebsocketCloseReply ( const QString & msg,
quint16 closeCode )
static

Definition at line 69 of file protocolwebsocket.cpp.

◆ createWebsocketHeader()

QByteArray ProtocolWebSocket::createWebsocketHeader ( quint8 opcode,
quint64 len )
static

Definition at line 37 of file protocolwebsocket.cpp.

◆ parse()

void ProtocolWebSocket::parse ( Socket * sock,
QIODevice * io ) const
finaloverridevirtual

Implements Cutelyst::Protocol.

Definition at line 89 of file protocolwebsocket.cpp.

◆ type()

Protocol::Type ProtocolWebSocket::type ( ) const
overridevirtual

Reimplemented from Cutelyst::Protocol.

Definition at line 32 of file protocolwebsocket.cpp.