top | up | prev | next

SocketServer Class

Definition at line 15 of SocketServer.hpp

Constructors

SocketServer(Log* log_, const std::string& serverName_, bool continuous_)

Member Functions

void Exit() override
void ExitContinuous()
bool Exiting() const
Log* GetLog() const
const std::string& Name() const override
void Run(const std::string& prompt)
void WaitForRunning()

Member Variables

std::unique_ptr<BuildServer> buildServer
std::unique_ptr<SocketConnection> connection
bool continuous
bool exiting
bool isRunning
Log* log
std::mutex mtx
std::string name
std::condition_variable running
std::string serverName
TcpSocket socket

Constructor Details

SocketServer Constructor

cmajor::build::SocketServer::SocketServer(Log * log_, const std::string& serverName_, bool continuous_)

Definition at line 16 of SocketServer.cpp
Declaration at line 18 of SocketServer.hpp


Member Function Details

Exit Member Function

void cmajor::build::SocketServer::Exit() override

Definition at line 89 of SocketServer.cpp
Declaration at line 24 of SocketServer.hpp

Base class overridden functions: cmajor::build::Host::Exit

Calls: cmajor::build::SocketServer::Exit

Called by: cmajor::build::SocketServer::Exit , cmajor::build::SocketServer::ExitContinuous


ExitContinuous Member Function

void cmajor::build::SocketServer::ExitContinuous()

Definition at line 116 of SocketServer.cpp :
117 {
118     continuous = false;
119     Exit();
120 }


Declaration at line 25 of SocketServer.hpp

Calls: cmajor::build::SocketServer::Exit


Exiting Member Function

bool cmajor::build::SocketServer::Exiting() const

Definition at line 23 of SocketServer.hpp :
23 { return exiting; }


GetLog Member Function

Log * cmajor::build::SocketServer::GetLog() const

Definition at line 20 of SocketServer.hpp :
20 { return log; }


Name Member Function

const std::string& cmajor::build::SocketServer::Name() const override

Definition at line 39 of SocketServer.cpp :
 40 {
 41     return name;
 42 }


Declaration at line 19 of SocketServer.hpp

Base class overridden functions: cmajor::build::Host::Name


Run Member Function

void cmajor::build::SocketServer::Run(const std::string& prompt)

Definition at line 60 of SocketServer.cpp
Declaration at line 22 of SocketServer.hpp


WaitForRunning Member Function

void cmajor::build::SocketServer::WaitForRunning()

Definition at line 44 of SocketServer.cpp
Declaration at line 21 of SocketServer.hpp


top | up | prev | next