The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Public Attributes | List of all members
campaignd::server::request Struct Reference

Client request information object. More...

Public Member Functions

 request (const std::string &reqcmd, const config &reqcfg, network::connection reqsock)
 Constructor. More...
 

Public Attributes

const std::stringcmd
 
const configcfg
 
const network::connection sock
 
const std::string addr
 

Detailed Description

Client request information object.

Contains data and metadata associated with a single request from a remote add-ons client, in a light-weight format for passing to request handlers.

Definition at line 52 of file campaign_server.hpp.

Constructor & Destructor Documentation

campaignd::server::request::request ( const std::string reqcmd,
const config reqcfg,
network::connection  reqsock 
)
inline

Constructor.

Parameters
reqcmdRequest command.
reqcfgRequest WML body.
reqsockClient socket that initiated the request.
Note
Neither reqcmd nor reqcfg are copied into instances, so they are required to exist for as long as every request instance that uses them.

Definition at line 71 of file campaign_server.hpp.

Member Data Documentation

const std::string campaignd::server::request::addr
const config& campaignd::server::request::cfg
const std::string& campaignd::server::request::cmd

Definition at line 54 of file campaign_server.hpp.

const network::connection campaignd::server::request::sock

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