1、 学学 年年 论论 文文 目目 录录 摘要 1 Abstract 2 第一章 绪论. 1 1.1 课题背景 1 1.2 研究现状 . 1 1.3 本文的主要工作 2 1.4 开发平台及环境介绍. 2 第二章 系统分析. 3 2.1 功能要求. 3 2.2 系统结构图. 3 2.3 性能要求 . 4 第三章 系统设计. 6 3.1 数据库设计 6 3.2 服务器端软件结构 7 3.3 客户端软件结构 . 13 3.4 测试运行 . 16 总结. 17 参考文献. 18 1 摘摘 要要 随着互联网的快速发展,网络聊天工具已经作为一种重要的信息交流工具,受到 越来越多的网民的青睐。目前,出现了很多非
2、常不错的聊天工具,其中应用比较 广泛的有 Netmeeting、腾讯 QQ、MSN-Messager 等等。该系统开发主要包括一个 网络聊天服务器程序和一个网络聊天客户程序两个方面。前者通过 Socket 套接 字建立服务器,服务器能读取、转发客户端发来信息,并能刷新用户列表。后者 通过与服务器建立连接,来进行客户端与客户端的信息交流。其中用到了局域网 通信机制的原理,通过直接继承 Thread 类来建立多线程。开发中利用了计算机 网络编 程的 基本 理论 知识 ,如 TCP/IP 协议 、客 户端 /服 务器 端模式 (Client/Server 模式) 、网络编程的设计方法等。在网络编程中
3、对信息的读取、 发送, 是利用流来实现信息的交换, 其中介绍了对实现一个系统的信息流的分析, 包含了一些基本的软件工程的方法。经过分析这些情况,该局域网聊天工具采用 Eclipse 为基本开发环境和 java 语言进行编写,首先可在短时间内建立系统应 用原型,然后,对初始原型系统进行不断修正和改进,直到形成可行系统 2 AbstractAbstract With the rapid development of Internet, network chat tool has been used as an important tool for information exchange, a g
4、rowing number of Internet users of all ages. At present, there are many very good chat tools, which is widely used in Netmeeting, Tencent QQ, MSN-Messager and so on. The system includes the development of a network chat server program and a network chat client program in two aspects. The former thro
5、ugh the Socket socket establish a server, server can read, forwarded from client information, and can refresh the list of users. The latter by establish a connection with the server, to client and client information exchange. Which uses a local area network communication mechanism, through direct Th
6、read class inheritance to create multiple threads. Development of the computer network programming to the basic knowledge, such as the TCP / IP protocol, client / server mode ( Client / Server mode), network programming design method. Network programming in the information read, send, is the use of flow to achieve information exchange, which is introduced to implement a systematic analysis of information flow, including some basic software engineering methods. Through the analysis of these c