fastcgi++
|
Data structure used as the body for FastCGI records with a RecordType of BEGIN_REQUEST. More...
#include <protocol.hpp>
Public Member Functions | |
Role | getRole () const |
Get the role field from the record body. | |
bool | getKeepConn () const |
Get keep alive value from the record body. |
Private Attributes | |
uint8_t | roleB1 |
Role value most significant byte. | |
uint8_t | roleB0 |
Role value least significant byte. | |
uint8_t | flags |
Flag value. | |
uint8_t | reserved [5] |
Reseved for future use and body padding. |
Static Private Attributes | |
static const int | keepConnBit = 1 |
Flag bit representing the keep alive value. |
Data structure used as the body for FastCGI records with a RecordType of BEGIN_REQUEST.
This structure defines the body used in FastCGI BEGIN_REQUEST records. It can be casted from raw 8 byte blocks of data and received as is. A BEGIN_REQUEST record is received when the other side wished to make a new request.
Definition at line 256 of file protocol.hpp.
|
inline |
Get keep alive value from the record body.
If this value is false, the socket should be closed on our side when the request is complete. If true, the other side will close the socket when done and potentially reuse the socket and multiplex other requests on it.
Definition at line 273 of file protocol.hpp.
References flags, and keepConnBit.
|
inline |
Get the role field from the record body.
Definition at line 263 of file protocol.hpp.
References Fastcgipp::Protocol::readBigEndian(), and roleB1.
|
private |
|
staticprivate |
Flag bit representing the keep alive value.
Definition at line 276 of file protocol.hpp.
Referenced by getKeepConn().
|
private |
Reseved for future use and body padding.
Definition at line 285 of file protocol.hpp.
|
private |
Role value least significant byte.
Definition at line 281 of file protocol.hpp.
|
private |
Role value most significant byte.
Definition at line 279 of file protocol.hpp.
Referenced by getRole().