cutelyst 4.3.0
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 *wsgi)
 
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 (Server *wsgi)
 
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 wsgi)

Definition at line 27 of file protocolwebsocket.cpp.

◆ ~ProtocolWebSocket()

ProtocolWebSocket::~ProtocolWebSocket ( )
overridevirtual

Definition at line 33 of file protocolwebsocket.cpp.

Member Function Documentation

◆ createData()

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

Implements Cutelyst::Protocol.

Definition at line 140 of file protocolwebsocket.cpp.

◆ createWebsocketCloseReply()

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

Definition at line 74 of file protocolwebsocket.cpp.

◆ createWebsocketHeader()

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

Definition at line 42 of file protocolwebsocket.cpp.

◆ parse()

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

Implements Cutelyst::Protocol.

Definition at line 94 of file protocolwebsocket.cpp.

◆ type()

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

Reimplemented from Cutelyst::Protocol.

Definition at line 37 of file protocolwebsocket.cpp.