#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. |
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 226 of file protocol.hpp.
Role Fastcgipp::Protocol::BeginRequest::getRole | ( | ) | const [inline] |
Get the role field from the record body.
Definition at line 233 of file protocol.hpp.
References Fastcgipp::Protocol::readBigEndian(), and roleB1.
bool Fastcgipp::Protocol::BeginRequest::getKeepConn | ( | ) | const [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 243 of file protocol.hpp.
References flags, and keepConnBit.
const int Fastcgipp::Protocol::BeginRequest::keepConnBit = 1 [static, private] |
Flag bit representing the keep alive value.
Definition at line 246 of file protocol.hpp.
Referenced by getKeepConn().
uint8_t Fastcgipp::Protocol::BeginRequest::roleB1 [private] |
Role value most significant byte.
Definition at line 249 of file protocol.hpp.
Referenced by getRole().
uint8_t Fastcgipp::Protocol::BeginRequest::roleB0 [private] |
uint8_t Fastcgipp::Protocol::BeginRequest::flags [private] |
uint8_t Fastcgipp::Protocol::BeginRequest::reserved[5] [private] |