spice client 和 spice server 通信机制(12)
时间:2025-07-08
时间:2025-07-08
RED_WORKER_MESSAGE_DISPLAY_CONNECT消息,调用handle_new_display_channel进行具体link工作(简化版本):
staticvoidhandle_new_display_channel(RedWorker*worker,
RedsStreamContext*peer,intmigrate)
{
DisplayChannel*display_channel;
size_tstream_buf_size;
//先断开原来的Channel连接,所做工作基本与此函数后面的工作相反
red_disconnect_display((RedChannel*)worker->display_channel);//__new_channel函数会new一个RedChannel,并用该函数的参数初始化RedChannel的成员
//RedChannel数据成员比较多,只拣最主要的说明一下:
//structRedChannel{
上一篇:京津SCAD系统简介