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

Public Types

enum class  HeaderConnection { NotSet , Keep , Close , Upgrade }
 
enum  ParserState { MethodLine , HeaderLine , ContentBody , H2Frames }
 

Public Member Functions

 ProtocolData (Socket *sock, int bufferSize)
 
virtual void resetData ()
 
virtual void setupNewConnection (Socket *sock)=0
 
virtual void socketDisconnected ()
 

Public Attributes

int buf_size
 
char * buffer
 
ParserState connState
 
qint64 contentLength
 
HeaderConnection headerConnection
 
bool headerHost
 
QIODeviceio
 
Socketsock
 
ProtocolDataupgradedFrom
 
bool X_Forwarded_For
 
bool X_Forwarded_Host
 
bool X_Forwarded_Proto
 

Detailed Description

Definition at line 18 of file protocol.h.

Member Enumeration Documentation

◆ HeaderConnection

enum class Cutelyst::ProtocolData::HeaderConnection
strong

Definition at line 25 of file protocol.h.

◆ ParserState

enum Cutelyst::ProtocolData::ParserState

Definition at line 33 of file protocol.h.

Constructor & Destructor Documentation

◆ ProtocolData()

ProtocolData::ProtocolData ( Cutelyst::Socket _sock,
int  bufferSize 
)

Definition at line 25 of file protocol.cpp.

◆ ~ProtocolData()

ProtocolData::~ProtocolData ( )
virtual

Definition at line 32 of file protocol.cpp.

Member Function Documentation

◆ resetData()

virtual void Cutelyst::ProtocolData::resetData ( )
inlinevirtual

Definition at line 41 of file protocol.h.

◆ socketDisconnected()

virtual void Cutelyst::ProtocolData::socketDisconnected ( )
inlinevirtual

Definition at line 52 of file protocol.h.

Member Data Documentation

◆ buf_size

int Cutelyst::ProtocolData::buf_size

Definition at line 59 of file protocol.h.

◆ buffer

char* Cutelyst::ProtocolData::buffer

Definition at line 62 of file protocol.h.

◆ connState

ParserState Cutelyst::ProtocolData::connState

Definition at line 60 of file protocol.h.

◆ contentLength

qint64 Cutelyst::ProtocolData::contentLength

Definition at line 55 of file protocol.h.

◆ headerConnection

HeaderConnection Cutelyst::ProtocolData::headerConnection

Definition at line 61 of file protocol.h.

◆ headerHost

bool Cutelyst::ProtocolData::headerHost

Definition at line 63 of file protocol.h.

◆ io

QIODevice* Cutelyst::ProtocolData::io

Definition at line 57 of file protocol.h.

◆ sock

Socket* Cutelyst::ProtocolData::sock

Definition at line 56 of file protocol.h.

◆ upgradedFrom

ProtocolData* Cutelyst::ProtocolData::upgradedFrom

Definition at line 58 of file protocol.h.

◆ X_Forwarded_For

bool Cutelyst::ProtocolData::X_Forwarded_For

Definition at line 64 of file protocol.h.

◆ X_Forwarded_Host

bool Cutelyst::ProtocolData::X_Forwarded_Host

Definition at line 65 of file protocol.h.

◆ X_Forwarded_Proto

bool Cutelyst::ProtocolData::X_Forwarded_Proto

Definition at line 66 of file protocol.h.