| 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; |