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

Method ProcessHelloEvent

src/render/plugins/plugin_net_event_router.cpp:274–290  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

272 }
273
274 void PluginNetEventRouter::ProcessHelloEvent(std::shared_ptr<Message>&& msg) {
275 const auto& hello = msg->hello();
276 auto event = MsgClientHello();
277 event.device_id_ = msg->device_id();
278 event.stream_id_ = msg->stream_id();
279 event.enable_audio_ = hello.enable_audio();
280 event.enable_video_ = hello.enable_video();
281 event.enable_controller = hello.enable_controller();
282 event.client_type_ = hello.client_type();
283 event.device_name_ = hello.device_name();
284 app_->GetContext()->SendAppMessage(event);
285
286 auto e = std::make_shared<MsgClientHello>(event);
287 plugin_manager_->VisitAllPlugins([=, this](GrPluginInterface* plugin) {
288 plugin->DispatchAppEvent(e);
289 });
290 }
291
292 void PluginNetEventRouter::ProcessMouseEvent(std::shared_ptr<Message>&& msg) {
293 if (settings_->app_.IsGlobalReplayMode()) {

Callers 1

ProcessNetEventMethod · 0.95

Calls 5

MsgClientHelloClass · 0.50
SendAppMessageMethod · 0.45
GetContextMethod · 0.45
VisitAllPluginsMethod · 0.45
DispatchAppEventMethod · 0.45

Tested by

no test coverage detected