fhq-server  v0.2.33
Documentation for fhq-server. FreeHackQuest is an open source platform for competitions of computer security.
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
EmployServer Class Reference

#include <employees.h>

Inheritance diagram for EmployServer:
Inheritance graph
[legend]
Collaboration diagram for EmployServer:
Collaboration graph
[legend]

Public Member Functions

 EmployServer ()
 
virtual bool init ()
 
virtual bool deinit ()
 
bool validateInputParameters (WsjcppError &error, CmdHandlerBase *pCmdHandler, const nlohmann::json &jsonMessage)
 
void setServer (IWebSocketServer *pWebSocketServer)
 
void sendToAll (const nlohmann::json &jsonMessage)
 
void sendToOne (QWebSocket *pClient, const nlohmann::json &jsonMessage)
 
- Public Member Functions inherited from WsjcppEmployBase
 WsjcppEmployBase (const std::string &sName, const std::vector< std::string > &vLoadAfter)
 
virtual ~WsjcppEmployBase ()
 
const std::vector< std::string > & loadAfter ()
 

Static Public Member Functions

static std::string name ()
 

Private Attributes

std::string TAG
 
IWebSocketServerm_pWebSocketServer
 

Constructor & Destructor Documentation

◆ EmployServer()

EmployServer::EmployServer ( )

Member Function Documentation

◆ deinit()

bool EmployServer::deinit ( )
virtual

Implements WsjcppEmployBase.

◆ init()

bool EmployServer::init ( )
virtual

Implements WsjcppEmployBase.

◆ name()

static std::string EmployServer::name ( )
inlinestatic

◆ sendToAll()

void EmployServer::sendToAll ( const nlohmann::json &  jsonMessage)

◆ sendToOne()

void EmployServer::sendToOne ( QWebSocket *  pClient,
const nlohmann::json &  jsonMessage 
)

◆ setServer()

void EmployServer::setServer ( IWebSocketServer pWebSocketServer)

◆ validateInputParameters()

bool EmployServer::validateInputParameters ( WsjcppError error,
CmdHandlerBase pCmdHandler,
const nlohmann::json &  jsonMessage 
)

Member Data Documentation

◆ m_pWebSocketServer

IWebSocketServer* EmployServer::m_pWebSocketServer
private

◆ TAG

std::string EmployServer::TAG
private

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