MCPcopy Create free account
hub / github.com/RGAA-Software/GoDesk / HandleStopServer

Method HandleStopServer

src/render_panel/network/http_handler.cpp:115–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113 }
114
115 void HttpHandler::HandleStopServer(http::web_request &req, http::web_response &rep) {
116 auto srv_mgr = context_->GetRenderController();
117 srv_mgr->StopServer();
118 auto nr = NetResp::Make(kNetOk, "OK", "");
119 rep.fill_json(nr.Dump());
120
121 this->context_->SendAppMessage(MsgServerAlive {
122 .alive_ = false,
123 });
124 }
125
126 void HttpHandler::HandleAllRunningProcesses(http::web_request &req, http::web_response &rep) {
127 auto rgm = context_->GetRunGameManager();

Callers 1

StartMethod · 0.80

Calls 4

GetRenderControllerMethod · 0.80
StopServerMethod · 0.80
DumpMethod · 0.45
SendAppMessageMethod · 0.45

Tested by

no test coverage detected