1、 本科毕业论文 基于 JAVA 的聊天系统的设计与实现 学 院:机电工程学院 专 业:计算机科学与技术双学位 学 号: 姓 名: 指导教师: 职 称: 论文提交日期:二八年四月 摘摘 要要 随着互联网的快速发展,网络聊天工具已经作为一种重要的信息交流工具,受 到越来越多的网民的青睐。目前,出现了很多非常不错的聊天工具,其中应用比较 广泛的有 Netmeeting、腾讯 QQ、MSN-Messager 等等。该系统开发主要包括一个网 络聊天服务器程序和一个网络聊天客户程序两个方面。前者通过 Socket 套接字建 立服务器,服务器能读取、转发客户端发来信息,并能刷新用户列表。后者通过与 服务器建
2、立连接,来进行客户端与客户端的信息交流。其中用到了局域网通信机制 的原理,通过直接继承 Thread 类来建立多线程。开发中利用了计算机网络编程的 基本理论知识,如 TCP/IP 协议、客户端/服务器端模式(Client/Server 模式) 、网 络编程的设计方法等。在网络编程中对信息的读取、发送,是利用流来实现信息的 交换,其中介绍了对实现一个系统的信息流的分析,包含了一些基本的软件工程的 方法。经过分析这些情况,该局域网聊天工具采用 Eclipse 为基本开发环境和 java 语言进行编写,首先可在短时间内建立系统应用原型,然后,对初始原型系统进行 不断修正和改进,直到形成可行系统 关键
3、词:局域网 聊天 socket java AbstractAbstract Along with the fast development of Internet, the network chating tool has already become one kind of important communication tools and received more and more web cams favor. At present, many extremely good chating tools have appeared . for example, Netmeeting, Q
4、Q, MSN-Messager and so on. This system development mainly includes two aspects of the server procedure of the network chat and the customer procedure of the network chat. The former establishes the server through the Socket, the server can read and deliver the information which client side sends, an
5、d can renovate the users tabulation. The latter make a connection with the server, carries on communication between the client side and the client side. With the LAN correspondence mechanism principle, through inheritting the Thread kind to establish the multithreading directly. In the development,
6、it uses the elementary theory knowledge which the computer network programmes. for example, 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. After analyzes these situations, this LAN