论文首页哲学论文经济论文法学论文教育论文文学论文历史论文理学论文工学论文医学论文管理论文艺术论文 |
摘 要
基于软件多代理和XML工作流时间的建摸和仿真,就是先将所在不同地区,不同时区的计算机连接起来,建立1个多点通信的模型,然后在不同的计算机之间实现互相通信,相互之间可以收发信息,传送文件,并能显示这些点有关时间的仿真图形。本方案实现了6点之间的相互通信和基于时间的仿真,并且还搜集了1些有关时区的资料,用XML编写了两个文档,在网页中可以把各个国家所在的时区显示出来。
本文是在Windows XP下写的两个XML文档,使用Visual C++ 6.0开发基于软件多代理的时间的建摸,即6点相互通信,用Turbo C来实现仿真。
本方案中的6点相互通信,每个程序分服务端(发送端)和客户端(接收端)。程序的控制通道使用Winsock流式套接字编程,同时在服务端和客户端均有用到Windows单线程编程,都需要能接受其它5个点发送过来的连接请求,能接受其它5点发送过来的数据并显示,还要能给其它点发送数据,并且各点相互之间能传送文件,其中在第1点能实现仿真,至于仿真的代码是用Turbo C实现的。
关键字:软件多代理;6点网络通信;单线程;套接字;文件传输
Abstract
Act for much according to the software and the XML work flow time to set up a model and then simulation,is first let the computers which in different regions, different time zones interrelated ,building up a multi-point,then carrying out mutual correspondence between different computers.the computers can receive or send informations.delivering documents to each other.and demonstrate the points on time simulation graphics.This project achieved the communication between six computers and the simulation based on time.and also collected some information on time zones,then wrote two text files with the XML,can come out the time zone manifestation of each one national place in the web page. (科教作文网http://zw.ΝsΕac.cOM编辑)
This text is two XML text files which write under the Windows XP,using Visual C++ 6.0 build up a model based on time,chieved the communication between six computers,with the Turbo C carry out to simulator
In this project of correspond by six computers,each program includes server (send out) and client ( receiving ).The control gateway uses the stream socket programming of the Winsock,At the same time ,the windows singlethreading programming will be used by the server and client,which is required to accept connecting request form other five points and can accept the data form other five points and display these data,then can send data to other points,and between points can be conveyed document. In the first point can
achieve simulator,the code of simulator is achieved by Turbo C.
Keywords: The software acts for much;Six point network correspondence;Singlethreading;Winsock; document transmission
注释:不含源代码