摘 要
本次毕业后即是一个实用的面向企业的局域网即时通讯软件。首先对系统的可行性进行分析,确定了系统开发可行。然后经过需求分析确定了系统最终要实现的功能,确定本系统所使用的后台数据库系统为MySQL,并对系统中的数据库进行设计。系统釆用目前最为流行的开发工具VC++语言进行开发。其中,网络通信部分采用流行的TCP/IP协议,程序采用典型的C/S(客户端/服务器)模式,这是传统的软件系统体系结构,能够将任务合理的分配的Client端(即客户端)和Server端(即服务器端),可以大大的降低系统的通讯开销,可以充分的利用C/S两端的硬件环境的优势。程序采用的是使用Socket套接字进行网络通讯模块设计,界面部分采用GUI轻量级控件,能够是系统的控件在各个平台上具有完全相同的界面,达到了很好的互通性。系统釆用模块化设计,釆用自顶向下的开发模式。
关键词:即时通信;VC++;C/S模式;Socket编程
Abstract
This graduation is a practical LAN instant messaging software for enterprises. Firstly, the feasibility of the system is analyzed, and the feasibility of system development is determined. Then the final function of the system is determined through the requirement analysis, and the background database system used in this system is determined to be MySQL, and the database in the system is designed. The system adopts the most popular development tool VC language to develop. Among them, the network communication part adopts the popular TCP/IP protocol, and the program adopts the typical C / S (client / Server) mode. The reasonable allocation of Client (client) and Server (server) can greatly reduce the communication overhead of the system and make full use of the advantages of the hardware environment at the two ends of C / S. The program uses Socket socket for network communication module design, interface part uses GUI lightweight control, can be the system controls on each platform has the same interface, achieved a good interoperability. The system adopts modular design and top-down development mode.
Keywords: instant messaging;VC;C / P S mode;Socket programming
目 录
摘 要 I
Abstract II
目 录 III
1 绪 论 1
1.1 课题的背景及意义 1
1.2 课题的国内外研究现状 1
1.3 课题研究的主要内容 2
1.4 论文的组织结构 2
2 网络即时通信软件开发的相关技术 4
2.1 异步通信技术 4
2.2 C/S编程模型 5
2.3 Windows Sockets简介 6
2.4 MFC Windows Socket类 7
2.4.1 CAsyncSocket异步类 7
2.4.2 CSocket类 7
2.5 MFC多线程编程技术 8
2.6 SQLite数据库 9
3 基于C/S结构的即时通信系统开发的系统需求分析 11
4 基于C/S结构的即时通信系统开发的系统详细设计 14
5 基于C/S结构的即时通信系统开发的系统实现 19
结 论 26
致 谢 27
参考文献 28