基于JAVA实时监控远程控制系统设计和实现
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
毕业论文
题目:基于JAVA实时监控远程控制系统设计和实现
专业:
班级:
姓名:
学号:
指导教师:
日期:
随着网络技术的发展,网络速度的加快,远程控制技术支持将逐渐占据技术支持的主流。
本文讲述的是一个基于Windows而开发的远程控制程序,用到了WinSock的API 技术。
对远程控制涉及的技术和方法等进行了函数原型级的详细解释,可以很容易的理解。
本文首先介绍了实现远程控制基础Socket编程的基本概念,以及Windows的消息系统,接着从建立Socket套接字开始,经过逐个功能模块的分析实现,包括从自动运行,到关机,到直接控屏功能等,然后重点介绍了各功能模块的具体实现过程,特别是文件管理和直接控屏的实现。
最后介绍了设计体会和编程体会。
本文在文件管理方面采用了FTP技术支持,利用在被控端建立一个FTP客户端,在本地运行一个FTP服务器,通过利用FTP技术来实现对目录查询,文件传输等文件操作。
使文件管理能够简单实现!在直接控屏模块的实现过程中,客户端主要是负责向服务器端发出获取服务端屏幕图像数据的请求,把从服务器端发送来的屏幕图像在本地实时地显示出来,并且及时发送鼠标在本地显示图像的动作响应给服务器;而服务器端主要是负责响应客户端的请求并抓取与发送屏幕图像,响应客户端发送过来的鼠标、键盘等的动作并反馈给客户端。
从而实现了对远程计算机的直接控制屏幕的操作。
关键词:C/S模式;Socket;FTP;直接控屏。
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 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 analyzes 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 experience of the programs.
What’s 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 side’s main mission is to send the request of capturing server’s screen image data to the server and show the screen image which transmitted from the server in local demonstrates in time, the client promptly transmits the mouse event to the server in the local display image movement response; The serves’ main mission is to respond the request of the client side and captures the local screen image and send it to the client side, it also sends the event of the mouse and the keyboard which client side transmits. Thus, the long-distance computer positive governing screen operation has realized.
Key words: C/S module; Socket; FTP; directly-controlling-screen/
目录
引言 (3)
1 课题描述 (5)
1.1 任务内容 (5)
1.2 应完成内容 (5)
2 系统分析 (6)
2.1 系统功能分析 (6)
2.2 系统软件模型 (6)
3 相关技术 (7)
3.1 Socket的基本概念 (7)
3.1.1Socket 引入 (7)
3.1.2Socket的类型 (7)
3.2 基本套接字函数调用 (8)
3.2.1创建套接字 (8)
3.2.2 指定本机地址 (8)
3.2.3 建立套接字连接 (8)
3.2.4 监听连接 (9)
3.2.5 数据传输 (9)
3.2.6 关闭套接字 (10)
3.3 Windows系统的Socket编程 (10)
3.3.1 使用WinSock API (10)
3.3.2 使用数据报套接字 (10)。