1、 摘 要 随着网络技术的发展,网络速度的加快,远程控制技术支持将逐渐占据技术支持的 主流。本文讲述的是一个基于 Windows 而开发的远程控制程序,用到了 WinSock 的 API 技术。对远程控制涉及的技术和方法等进行了函数原型级的详细解释,可以很容易的理 解。 本文首先介绍了实现远程控制基础 Socket 编程的基本概念,以及 Windows 的消息 系统,接着从建立 Socket 套接字开始,经过逐个功能模块的分析实现,包括从自动运 行,到关机,到直接控屏功能等,然后重点介绍了各功能模块的具体实现过程,特别是 文件管理和直接控屏的实现。最后介绍了设计体会和编程体会。 本文在文件管理方
2、面采用了 FTP 技术支持,利用在被控端建立一个 FTP 客户端,在 本地运行一个 FTP 服务器, 通过利用 FTP 技术来实现对目录查询, 文件传输等文件操作。 使文件管理能够简单实现!在直接控屏模块的实现过程中,客户端主要是负责向服务器 端发出获取服务端屏幕图像数据的请求,把从服务器端发送来的屏幕图像在本地实时地 显示出来,并且及时发送鼠标在本地显示图像的动作响应给服务器;而服务器端主要是 负责响应客户端的请求并抓取与发送屏幕图像,响应客户端发送过来的鼠标、键盘等的 动作并反馈给客户端。从而实现了对远程计算机的直接控制屏幕的操作。 关键词:C/S 模式;Socket;FTP;直接控屏。
3、2 Abstract With the development of network technology and speeding, the Remote technical support gradually will occupy the main technical support. This article is based on the Windows OS in the remote control procedure, and uses the WinSock API technology. The technology and the methods used in the
4、remote control have carried on the function prototype level detailed explaination , it will be very easily understood. First, This article introduces the remote control foundation and the basic concept of Socket programming, Following, from the Socket established to the process function module, it a
5、nalyzes one by one, which includes the auto-boot, directly-controlling-screen, shutdown and so on . The third, it emphasized introduced various functions module, especially the realization of the File management and the direct-screen -control. Finally, it introduces the design realized and the exper
6、ience of the programs. Whats more, this article adopts the FTP technical in the File management model. It establishes a FTP client in the Server side, and runs a FTP server in the Client side. Then, with the transferring of the file operation, it solves the basis file management problem. This causes the file management easily being realized! In the directly-controlling-screen module, the client sides main mission is to send the request of capturing servers screen image data to the server an