fastcgi++
A C++ FastCGI/Web API
Public Member Functions | Public Attributes | List of all members
Fastcgipp::Message Struct Reference

Data structure used to pass messages to requests. More...

#include <fastcgi++/message.hpp>

Public Member Functions

 Message (const int type_)
 
 Message ()
 
 Message (Message &&x)
 
Messageoperator= (Message &&x)
 
 Message (const Message &)=delete
 
Messageoperator= (const Message &)=delete
 

Public Attributes

int type
 Type of message. A 0 means FastCGI record. Anything else is open. More...
 
Block data
 The raw data being passed along with the message. More...
 

Detailed Description

Data structure used to pass messages to requests.

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 code to be processed. The data may contain any data that can be serialized into a raw character array.

Definition at line 46 of file message.hpp.

Constructor & Destructor Documentation

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

Definition at line 48 of file message.hpp.

Fastcgipp::Message::Message ( )
inline

Definition at line 52 of file message.hpp.

Referenced by operator=().

Fastcgipp::Message::Message ( Message &&  x)
inline

Definition at line 56 of file message.hpp.

Fastcgipp::Message::Message ( const Message )
delete

Member Function Documentation

Message& Fastcgipp::Message::operator= ( Message &&  x)
inline

Definition at line 61 of file message.hpp.

References data, Message(), and type.

Message& Fastcgipp::Message::operator= ( const Message )
delete

Member Data Documentation

Block Fastcgipp::Message::data

The raw data being passed along with the message.

Definition at line 75 of file message.hpp.

Referenced by Fastcgipp::Request< charT >::handler(), Fastcgipp::Manager_base::localHandler(), operator=(), and Fastcgipp::Transceiver::receive().

int Fastcgipp::Message::type

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

Definition at line 72 of file message.hpp.

Referenced by Fastcgipp::Request< charT >::handler(), Fastcgipp::Manager_base::localHandler(), and operator=().


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