4.2 远程控制系统tightvnc的相关功能
功能列表:
1、系统命令行
1) 动态桌面
允许一个客户端管理通过封装管理远程桌面。
2) 设置进程参数
The SetProcessShutdownParameters function sets shutdown parameters for the currently calling process. This function sets a shutdown order for a process relative to the other processes in the system.
3) 运行矢量检查
使用 Mutex 对象确认当前操作系统中仅一个进程被启动。
4)屏幕扫描
Read formatted data from a string.
5) 关闭屏幕保护
6) Diable Nagle Algorithm
Nagle Algorithm主要是用于优化小数据包的发送,用于在IP栈中缓冲小数据包,积累一定数量的小数据包一起发送。这样可以减少系统发包的数量,Nagle Algorithm实现时内部也有一个Timeout机制,但这个Timeout时间长度不能在外部设置。而且对每个IP栈的实现,这个Timeout Span 都有一个实现相关的值。
2、Screen Capture
Poll Schema
Poll方式就是最简单的一种方式了,也是在考虑截屏时最先想到一个解决方案。为取得系统的屏幕,poll方案每33ms轮询一次系统屏幕,将变化的部分添加加到一个UpdateRegion中。为获取这些屏幕变化的Rect,系统还采取了一种优化Polling算法,将屏幕分为32*32 pixel的小矩形块。
5.1 远程控制系统tightvnc服务端使用说明
1、JPEG and zlib libraries makefile文件的生成
   % xmkmf
   % make World
2、服务端配置与编译 
% cd Xvnc
   % ./configure
   % make
3、设置环境PATH
   % cd ..
   % ./vncinstall /usr/local/bin /usr/local/man
4、启动服务端初始配置连接密码如图4所示
                           
5、客户端连接测试如图5所示
       
6、输入密码连接成功如图6所示