AirInv Logo  1.00.12
C++ Simulated Airline Inventory Management System Library
Loading...
Searching...
No Matches
AIRINV::Reply Struct Reference

#include <airinv/server/Reply.hpp>

Public Member Functions

std::vector< boost::asio::const_buffer > to_buffers ()

Public Attributes

FlightRequestStatus::EN_FlightRequestStatus _status
std::string content

Detailed Description

A reply to be sent to a client.

Definition at line 18 of file Reply.hpp.

Member Function Documentation

◆ to_buffers()

std::vector< boost::asio::const_buffer > AIRINV::Reply::to_buffers ( )

Convert the reply into a vector of buffers. The buffers do not own the underlying memory blocks, therefore the reply object must remain valid and not be changed until the write operation has completed.

Definition at line 15 of file Reply.cpp.

References content.

Member Data Documentation

◆ _status

Status.

Definition at line 20 of file Reply.hpp.

Referenced by AIRINV::RequestHandler::handleRequest().

◆ content

std::string AIRINV::Reply::content

The content to be sent in the reply.

Definition at line 23 of file Reply.hpp.

Referenced by AIRINV::RequestHandler::handleRequest(), and to_buffers().


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