Response from the command-and-control server.
More...
#include <ServerCommandResponse.hpp>
|
bool | fail {false} |
| Indicates whether the server command failed. More...
|
|
bool | confirm {false} |
| Indicates whether the server command needs to be confirmed. More...
|
|
std::string | text |
| The text of the response by the server. More...
|
|
std::uint64_t | id {} |
| Optional ID returned by the server. More...
|
|
Response from the command-and-control server.
◆ ServerCommandResponse() [1/4]
crawlservpp::Struct::ServerCommandResponse::ServerCommandResponse |
( |
| ) |
|
|
default |
◆ ServerCommandResponse() [2/4]
crawlservpp::Struct::ServerCommandResponse::ServerCommandResponse |
( |
const std::string & |
response | ) |
|
|
inlineexplicit |
Constructor initializing a successful response with text.
- Parameters
-
response | Constant reference to a string containing the text of the server response. |
◆ ServerCommandResponse() [3/4]
crawlservpp::Struct::ServerCommandResponse::ServerCommandResponse |
( |
const std::string & |
response, |
|
|
std::uint64_t |
newId |
|
) |
| |
|
inline |
Constructor initializing a successful response with text and ID.
- Parameters
-
response | Constant reference to a string containing the text of the response by the server. |
newId | The ID to be sent alongside the response by the server. |
◆ ServerCommandResponse() [4/4]
crawlservpp::Struct::ServerCommandResponse::ServerCommandResponse |
( |
bool |
failed, |
|
|
bool |
toBeConfirmed, |
|
|
const std::string & |
response |
|
) |
| |
|
inline |
Constructor initializing a possibly failed or possibly to be confirmed response with text.
- Parameters
-
failed | Set whether the server command failed. |
toBeConfirmed | Set whether the server command needs to be confirmed. |
response | Constant reference to a string containing the text of the response by the server. |
◆ failed()
static ServerCommandResponse crawlservpp::Struct::ServerCommandResponse::failed |
( |
const std::string & |
response | ) |
|
|
inlinestatic |
◆ toBeConfirmed()
static ServerCommandResponse crawlservpp::Struct::ServerCommandResponse::toBeConfirmed |
( |
const std::string & |
response | ) |
|
|
inlinestatic |
◆ confirm
bool crawlservpp::Struct::ServerCommandResponse::confirm {false} |
◆ fail
bool crawlservpp::Struct::ServerCommandResponse::fail {false} |
◆ id
std::uint64_t crawlservpp::Struct::ServerCommandResponse::id {} |
◆ text
std::string crawlservpp::Struct::ServerCommandResponse::text |
The documentation for this struct was generated from the following file: