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

Method RenderServiceClient

src/render/network/render_service_client.cpp:20–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18 const int kMaxClientQueuedMessage = 4096;
19
20 RenderServiceClient::RenderServiceClient(const std::shared_ptr<RdApplication>& app) {
21 statistics_ = RdStatistics::Instance();
22 app_ = app;
23 context_ = app_->GetContext();
24 msg_listener_ = context_->GetMessageNotifier()->CreateListener();
25 msg_listener_->Listen<MsgTimer1000>([=, this](const MsgTimer1000& msg) {
26 this->HeartBeat();
27 });
28 }
29
30 void RenderServiceClient::Start() {
31 client_ = std::make_shared<asio2::ws_client>();

Callers

nothing calls this directly

Calls 3

HeartBeatMethod · 0.95
GetContextMethod · 0.45
GetMessageNotifierMethod · 0.45

Tested by

no test coverage detected