1、 目 录 内容摘要: . 1 关键字: 1 Abstract: . 1 Key words: 1 1. 引言 . 2 2. 系统分析 2 2.1 可行性分析. 2 2.2 需求分析 3 3. 总体设计 . 11 3.1 功能模块图 11 3.2 数据库设计12 3.3 类图 18 4. 详细设计及实现 19 4.1 界面设计 .19 4.2 数据输入输出设计 .23 4.3 代码实现 .24 5 系统测试 31 5.1 注册测试 .31 5.2 登陆测试 .31 5.3 私聊测试 .32 5.4 群聊测试 .33 5.5 文件传输测试 34 6 总结 .35 参考文献 .37 内容内容摘要摘要
2、: 计算机网络的迅速发展,对人类社会诸多领域产生了 巨大的影响。尤其是,随着信息时代的来临,人们之间愈来愈趋向于 通过网络来交流和传递信息。而聊天系统正是当前人们使用最多的中 介。在这个平台上,许多认识或不认识的人们彼此间能够随意的相互 交流。因此,开发和架构这种平台符合时代发展的需要。 本系统在开发中用到了局域网通信机制的原理,通过直接继承 Thread 类来建立多线程。开发中利用了计算机网络编程的基本理论知 识,如 TCP/IP 协议、客户端/服务器端模式(Client/Server 模式)、网 络编程的设计方法等。在网络编程中对信息的读取、发送,是利用流 来实现信息的交换,其中介绍了对实
3、现一个系统的信息流的分析,包 含了一些基本的软件工程的方法。 关键字关键字: Socket;服务器端; 客户端; 连接(connection) Abstract:The rapid development of the computer networks has been making a great influence in many fields of human society. In particular, along with information age approaching, between the people tend to increasingly in exchang
4、es and the transmission information through the network. But chats the system is precisely the current people uses many intermediary, 。 In this platform, people each other which many understanding or did not know can at will mutual exchange. Therefore, the development and overhead construction this
5、kind of platform conforms to the time need to develop. This system with the LAN correspondence mechanism principle, through inheritting the Thread kind to establish the multithreading directly. In the development, it uses the elementary theory knowledge which the computer network programmes. for exa
6、mple, TCP/IP agreement, Client/Server pattern, network programming design method and so on. In the network programming, it realizes reading and transmission of the information, that is, informaton flows realize the information exchange, introduce information flow analysis for realizing a system, in which containes some basic software engineering methods. Key words: Socket ; server ; client ; connection 1. 引言引言 当今主流的聊天工具有 QQ,ICQ,MSN Messenger,Yahoo Messenger 等,国内最热门的当属 QQ,腾讯 QQ(OICQ)是由深圳市 腾