The Battle for Wesnoth  1.15.2+dev
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, socket_ptr reqsock)
 Constructor. More...

Public Attributes

const std::string & cmd
const configcfg
const socket_ptr 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 49 of file campaign_server.hpp.

Constructor & Destructor Documentation

◆ request()

campaignd::server::request::request ( const std::string &  reqcmd,
const config reqcfg,
socket_ptr  reqsock 


reqcmdRequest command.
reqcfgRequest WML body.
reqsockClient socket that initiated the request.
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 68 of file campaign_server.hpp.

Member Data Documentation

◆ addr

const std::string campaignd::server::request::addr

◆ cfg

const config& campaignd::server::request::cfg

◆ cmd

const std::string& campaignd::server::request::cmd

Definition at line 51 of file campaign_server.hpp.

◆ sock

const socket_ptr campaignd::server::request::sock

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