fastcgi++
Public Member Functions | Public Attributes
Fastcgipp::Message Struct Reference

Data structure used to pass messages within the fastcgi++ task management system. More...

#include <message.hpp>

List of all members.

Public Member Functions

 Message (const int type_)
 Message ()

Public Attributes

int type
 Type of message. A 0 means FastCGI record. Anything else is open.
size_t size
 Size of the data section.
boost::shared_array< char > data
 Pointer to the raw data being passed along with the message.

Detailed Description

Data structure used to pass messages within the fastcgi++ task management system.

This data structure is crucial to all operation in the FastCGI library as all data passed to requests must be encapsulated in this data structure. A type value of 0 means that the message is a FastCGI record and will be processed at a low level by the library. Any other type value and the message will be passed up to the user to be processed. The data may contain any data that can be casted to/from a raw character array. The size obviously represents the exact size of the data section.

Definition at line 38 of file message.hpp.


Constructor & Destructor Documentation

Fastcgipp::Message::Message ( const int  type_) [inline]

Definition at line 40 of file message.hpp.

Definition at line 41 of file message.hpp.


Member Data Documentation

boost::shared_array<char> Fastcgipp::Message::data

Pointer to the raw data being passed along with the message.

Definition at line 47 of file message.hpp.

Referenced by Fastcgipp::ManagerPar::localHandler(), and Fastcgipp::Manager< T >::push().

Size of the data section.

Definition at line 45 of file message.hpp.

Referenced by Fastcgipp::Transceiver::handler().

Type of message. A 0 means FastCGI record. Anything else is open.

Definition at line 43 of file message.hpp.

Referenced by Fastcgipp::Transceiver::handler(), and Fastcgipp::Manager< T >::push().


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