fastcgi++  3.1alpha
A C++ FastCGI/Web API
Fastcgipp::Message Struct Reference

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

#include <fastcgi++/message.hpp>

Collaboration diagram for Fastcgipp::Message:
[legend]

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 63 of file message.hpp.

Constructor & Destructor Documentation

◆ Message() [1/4]

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

Definition at line 82 of file message.hpp.

◆ Message() [2/4]

Fastcgipp::Message::Message ( )
inline

Definition at line 86 of file message.hpp.

◆ Message() [3/4]

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

Definition at line 90 of file message.hpp.

◆ Message() [4/4]

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

Member Function Documentation

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

Definition at line 95 of file message.hpp.

Member Data Documentation

◆ data

Block Fastcgipp::Message::data

The raw data being passed along with the message.

Definition at line 109 of file message.hpp.

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

◆ type

int Fastcgipp::Message::type

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

Definition at line 106 of file message.hpp.

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


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