top | up | prev | next

CmdbSessionServer Class

Definition at line 28 of Debug.cpp

Constructors

CmdbSessionServer()

Member Functions

void CloseSession(TcpSocket& socket)
void Done() static
void Init() static
CmdbSessionServer& Instance() static
bool IsSessionOpen() const
void OpenSession(TcpSocket& socket)
int64_t ReceiveInput(uint8_t* buffer, int64_t bufferSize)
void SendOutput(int fileHandle, const std::string& bytes)
void Start(const std::string& skey_, const std::string& rkey_, int port_)

Member Variables

std::string inputHexByteBuffer
std::unique_ptr<CmdbSessionServer> instance static
int port
std::string rkey
bool sessionOpen
std::string skey

Constructor Details

CmdbSessionServer Constructor

cmajor::rt::CmdbSessionServer::CmdbSessionServer()

Definition at line 52 of Debug.cpp :
 52 : skey()rkey()port()sessionOpen(false)
 53 {
 54 }


Declaration at line 42 of Debug.cpp


Member Function Details

CloseSession Member Function

void cmajor::rt::CmdbSessionServer::CloseSession(TcpSocket& socket)

Definition at line 122 of Debug.cpp :
123 {
124     sngxml::dom::Document closeSessionRequest;
125     sngxml::dom::Element* cmdbCloseMessage = new sngxml::dom::Element(U"cmdbMessage");
126     closeSessionRequest.AppendChild(std::unique_ptr<sngxml::dom::Node>(cmdbCloseMessage));
127     cmdbCloseMessage->SetAttribute(U"kind"U"closeSessionRequest");
128     sngxml::dom::SendDocument(socketcloseSessionRequest);
129 }


Declaration at line 36 of Debug.cpp

Calls: sngxml::dom::Document::AppendChild , sngxml::dom::Element::SetAttribute

Called by: cmajor::rt::CmdbSessionServer::ReceiveInput , cmajor::rt::CmdbSessionServer::SendOutput


Done Member Function

void cmajor::rt::CmdbSessionServer::Done() static

Definition at line 61 of Debug.cpp :
 62 {
 63     instance.reset();
 64 }


Declaration at line 32 of Debug.cpp


Init Member Function

void cmajor::rt::CmdbSessionServer::Init() static

Definition at line 56 of Debug.cpp :
 57 {
 58     instance.reset(new CmdbSessionServer());
 59 }


Declaration at line 31 of Debug.cpp


Instance Member Function

CmdbSessionServer & cmajor::rt::CmdbSessionServer::Instance() static

Definition at line 33 of Debug.cpp :
 33 { return *instance; }


IsSessionOpen Member Function

bool cmajor::rt::CmdbSessionServer::IsSessionOpen() const

Definition at line 37 of Debug.cpp :
 37 { return sessionOpen; }


OpenSession Member Function

void cmajor::rt::CmdbSessionServer::OpenSession(TcpSocket& socket)

Definition at line 74 of Debug.cpp
Declaration at line 35 of Debug.cpp

Calls: sngxml::dom::Document::AppendChild , sngxml::dom::Element::GetAttribute , sngxml::dom::Element::SetAttribute , sngxml::dom::Node::GetNodeType

Called by: cmajor::rt::CmdbSessionServer::ReceiveInput , cmajor::rt::CmdbSessionServer::SendOutput


ReceiveInput Member Function

int64_t cmajor::rt::CmdbSessionServer::ReceiveInput(uint8_t* buffer, int64_t bufferSize)

Definition at line 188 of Debug.cpp
Declaration at line 39 of Debug.cpp

Calls: cmajor::rt::CmdbSessionServer::CloseSession , cmajor::rt::CmdbSessionServer::OpenSession , sngxml::dom::Document::AppendChild , sngxml::dom::Element::GetAttribute , sngxml::dom::Element::SetAttribute , sngxml::dom::Node::GetNodeType


SendOutput Member Function

void cmajor::rt::CmdbSessionServer::SendOutput(int fileHandle, const std::string& bytes)

Definition at line 131 of Debug.cpp
Declaration at line 38 of Debug.cpp

Calls: cmajor::rt::CmdbSessionServer::CloseSession , cmajor::rt::CmdbSessionServer::OpenSession , sngxml::dom::Document::AppendChild , sngxml::dom::Element::GetAttribute , sngxml::dom::Element::SetAttribute , sngxml::dom::Node::GetNodeType


Start Member Function

void cmajor::rt::CmdbSessionServer::Start(const std::string& skey_, const std::string& rkey_, int port_)

Definition at line 66 of Debug.cpp :
 67 {
 68     skey = skey_;
 69     rkey = rkey_;
 70     port = port_;
 71     sessionOpen = true;
 72 }


Declaration at line 34 of Debug.cpp


top | up | prev | next