Fastcgipp::Protocol::EndRequest Class Reference

Data structure used as the body for FastCGI records with a RecordType of END_REQUEST. More...

#include <protocol.hpp>

List of all members.

Public Member Functions

void setAppStatus (int status)
 Set the requests return value.
void setProtocolStatus (ProtocolStatus status)
 Set the reason for termination.

Private Attributes

uint8_t appStatusB3
 Return value most significant byte.
uint8_t appStatusB2
 Return value second most significant byte.
uint8_t appStatusB1
 Return value third most significant byte.
uint8_t appStatusB0
 Return value least significant byte.
uint8_t protocolStatus
 Requests Status.
uint8_t reserved [3]
 Reseved for future use and body padding.


Detailed Description

Data structure used as the body for FastCGI records with a RecordType of END_REQUEST.

This structure defines the body used in FastCGI END_REQUEST records. It can be casted to raw 8 byte blocks of data and transmitted as is. An END_REQUEST record is sent when this side wishes to terminate a request. This can be simply because it is complete or because of a problem.

Definition at line 300 of file protocol.hpp.


Member Function Documentation

void Fastcgipp::Protocol::EndRequest::setAppStatus ( int  status  )  [inline]

Set the requests return value.

This is an integer value representing what would otherwise be the return value in a normal CGI application.

Parameters:
[in] status The return value

Definition at line 310 of file protocol.hpp.

References appStatusB3, and Fastcgipp::Protocol::readBigEndian().

void Fastcgipp::Protocol::EndRequest::setProtocolStatus ( ProtocolStatus  status  )  [inline]

Set the reason for termination.

This value is one of ProtocolStatus and represents the reason for termination.

Parameters:
[in] status The requests status

Definition at line 318 of file protocol.hpp.

References protocolStatus.


Member Data Documentation

Return value least significant byte.

Definition at line 327 of file protocol.hpp.

Return value third most significant byte.

Definition at line 325 of file protocol.hpp.

Return value second most significant byte.

Definition at line 323 of file protocol.hpp.

Return value most significant byte.

Definition at line 321 of file protocol.hpp.

Referenced by setAppStatus().

Requests Status.

Definition at line 329 of file protocol.hpp.

Referenced by setProtocolStatus().

Reseved for future use and body padding.

Definition at line 331 of file protocol.hpp.


The documentation for this class was generated from the following file:

Generated on Thu Dec 11 01:47:29 2008 for fastcgi++ by  doxygen 1.5.7.1