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

Method OnClientEventCame

src/render/plugin_interface/gr_net_plugin.cpp:31–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29 }
30
31 void GrNetPlugin::OnClientEventCame(bool is_proto,
32 int64_t socket_fd,
33 const NetPluginType& nt_plugin_type,
34 const NetChannelType& ch_type,
35 std::shared_ptr<Data> msg) {
36 auto event = std::make_shared<GrPluginNetClientEvent>();
37 event->is_proto_ = is_proto;
38 event->socket_fd_ = socket_fd;
39 event->nt_plugin_type_ = nt_plugin_type;
40 event->nt_channel_type_ = ch_type;
41 event->message_ = msg;
42 event->from_plugin_ = this;
43 CallbackEvent(event);
44 }
45
46 bool GrNetPlugin::IsOnlyAudioClients() {
47 return false;

Callers 2

OnMessageMethod · 0.80
OnMessageMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected