spice client 和 spice server 通信机制(16)
时间:2025-07-08
时间:2025-07-08
2)CursorChannel的link实现:
工作流程与DisplayChannel一样,通过dispatcher将消息发送给工作线程处理。
消息:RED_WORKER_MESSAGE_CURSOR_CONNECT
处理函数:red_connect_cursor,所做工作基本一样:
staticvoidred_connect_cursor(RedWorker*worker,RedsStreamContext*peer,intmigrate)
{
CursorChannel*channel;
red_disconnect_cursor((RedChannel*)worker->cursor_channel);if(!(channel=(CursorChannel*)__new_channel(worker,
sizeof(*channel),
SPICE_CHANNEL_CURSOR,peer,migrate,
handle_channel_events,
red_disconnect_cursor,
上一篇:京津SCAD系统简介