OpenCPN Partial API docs
Loading...
Searching...
No Matches
RESTServer Class Reference
Inheritance diagram for RESTServer:

Public Member Functions

bool StartServer (std::string certificate_location)
 
void StopServer ()
 
void HandleServerMessage (RESTServerEvent &event)
 
void SetSecThreadActive (void)
 
void SetSecThreadInActive (void)
 
bool IsSecThreadActive () const
 
void SetSecondaryThread (RESTServerThread *secondary_Thread)
 
RESTServerThreadGetSecondaryThread ()
 
void SetThreadRunFlag (int run)
 
std::string GetCertificateDirectory ()
 

Public Attributes

int m_Thread_run_flag
 
std::string m_cert_file
 
std::string m_key_file
 

Detailed Description

Definition at line 48 of file REST_server.h.

Constructor & Destructor Documentation

◆ RESTServer()

RESTServer::RESTServer ( )

Definition at line 141 of file REST_server.cpp.

◆ ~RESTServer()

RESTServer::~RESTServer ( )
virtual

Definition at line 153 of file REST_server.cpp.

Member Function Documentation

◆ GetCertificateDirectory()

std::string RESTServer::GetCertificateDirectory ( )
inline

Definition at line 74 of file REST_server.h.

◆ GetSecondaryThread()

RESTServerThread * RESTServer::GetSecondaryThread ( )
inline

Definition at line 69 of file REST_server.h.

◆ HandleServerMessage()

void RESTServer::HandleServerMessage ( RESTServerEvent event)

Definition at line 262 of file REST_server.cpp.

◆ IsSecThreadActive()

bool RESTServer::IsSecThreadActive ( ) const
inline

Definition at line 64 of file REST_server.h.

◆ SetSecondaryThread()

void RESTServer::SetSecondaryThread ( RESTServerThread secondary_Thread)
inline

Definition at line 66 of file REST_server.h.

◆ SetSecThreadActive()

void RESTServer::SetSecThreadActive ( void  )
inline

Definition at line 62 of file REST_server.h.

◆ SetSecThreadInActive()

void RESTServer::SetSecThreadInActive ( void  )
inline

Definition at line 63 of file REST_server.h.

◆ SetThreadRunFlag()

void RESTServer::SetThreadRunFlag ( int  run)
inline

Definition at line 72 of file REST_server.h.

◆ StartServer()

bool RESTServer::StartServer ( std::string  certificate_location)

Definition at line 155 of file REST_server.cpp.

◆ StopServer()

void RESTServer::StopServer ( )

Definition at line 173 of file REST_server.cpp.

Member Data Documentation

◆ m_cert_file

std::string RESTServer::m_cert_file

Definition at line 77 of file REST_server.h.

◆ m_key_file

std::string RESTServer::m_key_file

Definition at line 78 of file REST_server.h.

◆ m_Thread_run_flag

int RESTServer::m_Thread_run_flag

Definition at line 75 of file REST_server.h.


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