top | up | prev | next

ServerExecutionContext Class

Definition at line 14 of ServerExecutionContext.hpp

Constructors

ServerExecutionContext(const std::string& serverName)

Member Functions

void ExitServer() override

Member Variables

std::thread serverThread
std::unique_ptr<SocketServer> socketServer

Constructor Details

ServerExecutionContext Constructor

cmajor::build::ServerExecutionContext::ServerExecutionContext(const std::string& serverName)

Definition at line 25 of ServerExecutionContext.cpp :
26 {
27     socketServer.reset(new SocketServer(GetLog()serverNametrue));
28     serverThread = std::thread({RunContinuousSocketServersocketServer.get() });
29     socketServer->WaitForRunning();
30 }


Declaration at line 17 of ServerExecutionContext.hpp


Member Function Details

ExitServer Member Function

void cmajor::build::ServerExecutionContext::ExitServer() override

Definition at line 43 of ServerExecutionContext.cpp :
44 {
45     return socketServer->ExitContinuous();
46 }


Declaration at line 19 of ServerExecutionContext.hpp

Base class overridden functions: cmajor::build::ExecutionContext::ExitServer


top | up | prev | next