文档介绍:网络虚拟实验平台的构建与测试
摘要
基于网络的虚拟实验平台是在能够进行网络通信的基础之上将计算机上虚拟的各种仪器、器件,按实验要求组装成一个完整的实验环境,实现搭接实验电路,演示实验过程等功能。远程指导模块是其中的一个功能模块。它分成指导端和被指导端两部分,指导端通过HOOK技术,采集本地机鼠标和键盘信息;然后将这些信息打包,通过P2P网络通信机制将信息包传给被指导端;在被指导端将信息包信息解出,通过mouse_event、keybd_event等函数去控制被指导端的鼠标、键盘动作,实现相关的一些远程指导动作。本模块在VC环境下开发,用到了Windows Socket编程技术,P2P编程思想,HOOK技术,多线程技术等多方面的技术。由于整个系统模块很多,本设计中编写了独立的测试程序,经过测试基本达到预期的设计目标。
关键词:远程指导;P2P;Windows Socket编程;HOOK;多线程
Design and Implementation of Remote Guidance Module Based work Virtual Experiment Platform
Abstract
Under the foundation munications,work-based Virtual Experimental Platform could integrate puter virtual devices into plete experimental environment according to the experiment requirements, and connect the experiment circuit and demonstrate the process of experiment. The remote guiding module was one of function modules, which was divided into guiding end and the guided end. With HOOK, the guiding end captured the information of local mouse and keyboard, and packed the information to send to the guided part through peer-to-munication mechanism. The guided end will unpack the information, and control the mouse and keyboard of the guided end by mouse_event, keybd_event functions to implement some remote control actions. Developed under VC environment, the remote guidance module used Windows Socket programming technology, P2P programming ideas, HOOK technology, multithreading technology, and etc. Because there are many modules for the whole system, an independent testing procedure was programmed to test the modules, which had been proven to achieve the desired objectives
Key words: Remote guidance;Peer-to-Peer;Windows Socket programming;HOOK;Multithreading
目录
论文总页数:23页
1引言 1
1
1
基于网络的虚拟实验平台 1
远程指导模块 2
项目要求 2
功能要求 2
Client/Server(客户端/服务器)结构工作过程 2
2 网络基础知识简介 3
OSI与TCP/IP参考模型的对应关系 3
OSI参考模型 3
TCP/IP参考模型 4
Windows Socket编程原理及操作步骤 5
P2P网络介绍 8
3 相关函数分析与代码实现 8
8
进程介绍 8