fastcgi++
|
Data structure used as the header for FastCGI records. More...
#include <protocol.hpp>
Public Member Functions | |
void | setVersion (uint8_t version_) |
Set the version field of the record header. | |
int | getVersion () const |
Get the version field of the record header. | |
void | setType (RecordType type_) |
Set the record type in the header. | |
RecordType | getType () const |
Get the record type in the header. | |
void | setRequestId (RequestId requestId_) |
Set the request ID field in the record header. | |
RequestId | getRequestId () const |
Get the request ID field in the record header. | |
void | setContentLength (uint16_t contentLength_) |
Set the content length field in the record header. | |
int | getContentLength () const |
Get the content length field in the record header. | |
void | setPaddingLength (uint8_t paddingLength_) |
Set the padding length field in the record header. | |
int | getPaddingLength () const |
Get the padding length field in the record header. |
Private Attributes | |
uint8_t | version |
FastCGI version number. | |
uint8_t | type |
Record type. | |
uint8_t | requestIdB1 |
Request ID most significant byte. | |
uint8_t | requestIdB0 |
Request ID least significant byte. | |
uint8_t | contentLengthB1 |
Content length most significant byte. | |
uint8_t | contentLengthB0 |
Content length least significant byte. | |
uint8_t | paddingLength |
Length of record padding. | |
uint8_t | reserved |
Reseved for future use and header padding. |
Data structure used as the header for FastCGI records.
This structure defines the header used in FastCGI records. It can be casted to and from raw 8 byte blocks of data and transmitted/received as is. The endianess and order of data is kept correct through the accessor member functions.
Definition at line 168 of file protocol.hpp.
|
inline |
Get the content length field in the record header.
Definition at line 217 of file protocol.hpp.
References contentLengthB1, and Fastcgipp::Protocol::readBigEndian().
|
inline |
Get the padding length field in the record header.
Definition at line 229 of file protocol.hpp.
References paddingLength.
|
inline |
Get the request ID field in the record header.
Definition at line 205 of file protocol.hpp.
References Fastcgipp::Protocol::readBigEndian(), and requestIdB1.
|
inline |
Get the record type in the header.
Definition at line 193 of file protocol.hpp.
References type.
|
inline |
Get the version field of the record header.
Definition at line 181 of file protocol.hpp.
References version.
|
inline |
Set the content length field in the record header.
[in] | contentLength_ | The records content length |
Definition at line 211 of file protocol.hpp.
References contentLengthB1, and Fastcgipp::Protocol::readBigEndian().
Referenced by Fastcgipp::Protocol::ManagementReply< NAMELENGTH, VALUELENGTH, PADDINGLENGTH >::ManagementReply().
|
inline |
Set the padding length field in the record header.
[in] | paddingLength_ | The records padding length |
Definition at line 223 of file protocol.hpp.
References paddingLength.
Referenced by Fastcgipp::Protocol::ManagementReply< NAMELENGTH, VALUELENGTH, PADDINGLENGTH >::ManagementReply().
|
inline |
Set the request ID field in the record header.
[in] | requestId_ | The records request ID |
Definition at line 199 of file protocol.hpp.
References Fastcgipp::Protocol::readBigEndian(), and requestIdB1.
Referenced by Fastcgipp::Protocol::ManagementReply< NAMELENGTH, VALUELENGTH, PADDINGLENGTH >::ManagementReply().
|
inline |
Set the record type in the header.
[in] | type_ | Record type |
Definition at line 187 of file protocol.hpp.
References type.
Referenced by Fastcgipp::Protocol::ManagementReply< NAMELENGTH, VALUELENGTH, PADDINGLENGTH >::ManagementReply().
|
inline |
Set the version field of the record header.
[in] | version_ | FastCGI protocol version number |
Definition at line 175 of file protocol.hpp.
References version.
Referenced by Fastcgipp::Protocol::ManagementReply< NAMELENGTH, VALUELENGTH, PADDINGLENGTH >::ManagementReply().
|
private |
Content length least significant byte.
Definition at line 242 of file protocol.hpp.
|
private |
Content length most significant byte.
Definition at line 240 of file protocol.hpp.
Referenced by getContentLength(), and setContentLength().
|
private |
Length of record padding.
Definition at line 244 of file protocol.hpp.
Referenced by getPaddingLength(), and setPaddingLength().
|
private |
Request ID least significant byte.
Definition at line 238 of file protocol.hpp.
|
private |
Request ID most significant byte.
Definition at line 236 of file protocol.hpp.
Referenced by getRequestId(), and setRequestId().
|
private |
Reseved for future use and header padding.
Definition at line 246 of file protocol.hpp.
|
private |
|
private |
FastCGI version number.
Definition at line 232 of file protocol.hpp.
Referenced by getVersion(), and setVersion().