摘 要
随着科学技术的不断提高,计算机科学日渐成熟,其强大的功能已为人们深刻认识,它已进入人类社会的各个领域并发挥着越来越重要的作用。时下聊天已成为人们相互交流的一种方式, 与E-mail、电话相比, 聊天服务更具有实时性和有效性。
本聊天工具利用C++作为前端的应用开发工具,Access作为后台的数据库,采用客户端/服务器的模型构建,结构健壮灵活,在数据处理、人机界面、数据通信、系统维护等方面具有功能全面、实用等特点。
包括服务器端和客户端两个模块,客户端通过服务器端进行通信。该软件采用多线程技术支持多用户操作,并采用相关技术进行了优化,加快了文字传递速度。
关键字:C++ ,Access,聊天工具
Abstract
Along with science's and technology's unceasing enhancement, the computer science is mature day after day, its formidable function had known profoundly for the people, it entered the human society each domain and is playing more and more vital role. Chats at present has become one way which the people exchange mutually, with E-mail, the telephone compares, chats the service to have timeliness and the validity.
Front end this chats the tool to take using C++ the application development kit, Access takes the backstage the database, uses the client side/server's model construction, the structure vigorously and healthily nimble, in aspects and so on data processing, man-machine contact surface, data communication, system maintenance has the function comprehensively, practical and so on characteristics.
Including the server end and the client side two modules, the client side carries on the correspondence through the server end. This software uses the multithreading technical support multiuser operation, and used the correlation technique to carry on the optimization, sped up the writing transmission speed.
Key words: C++, Access, Chats the tool
目 录
1 概述. 1
1.1 本课题的研究背景. 1
1.2 国内外研究现状. 1
1.3 开发工具的简介. 1
1.3.1 Visual C++ 1
1.3.2 ACCESS 2000数据库简介. 3
2网络通讯程序的设计原理和过程. 4
2.1 MFC框架. 4
2.2 TCP/IP协议. 5
2.3 客户机/服务器模型. 7
2.4 Windows Sockets网络编程接口. 8
2.5 系统功能描述. 8
3 需求分析. 9
3.1可行性研究. 9
3.2 系统需求分析. 9
3.3 系统目标. 9
3.4 系统开发环境. 10
4总体设计. 10
4.1系统流程设计. 11
4.2 服务器端的设计. 11
4.2.1 服务器端工作流程图. 11
4.2.2 服务器的界面设计. 12
4.3 客户端的设计. 12
4.3.1 客户端工作流程图. 12
4.3.2 客户端的界面设计. 14
4.4 数据库设计. 14
5 系统程序实现. 15
5.1 服务器端. 15
5.2 客户机端. 21
6 软件测试. 28
6.1 软件测试的意义. 29
6.2 软件测试的重要性. 29
6.3 软件测试的范围. 29
6.4 软件测试的方法. 29
6.5 软件测试的目的和原则. 30
7 总结. 31
参 考 文 献. 33
致 谢. 34
|