摘要:随着互联网的快速发展,网络聊天工具已经作为一种重要的信息交流工具,受到越来越多的网民的青睐。目前,出现了很多非常不错的聊天工具,其中应用比较广泛的有Netmeeting、腾讯QQ、MSN-Messager等等。该系统开发主要包括一个网络聊天服务器程序和一个网络聊天客户程序两个方面。前者通过Socket套接字建立服务器,服务器能读取、转发客户端发来信息,并能刷新用户列表。后者通过与服务器建立连接,来进行客户端与客户端的信息交流。其中用到了局域网通信机制的原理,通过直接继承Thread类来建立多线程。开发中利用了计算机网络编程的基本理论知识,如TCP/IP协议、客户端/服务器端模式(Client/Server模式)、网络编程的设计方法等。在网络编程中对信息的读取、发送,是利用流来实现信息的交换,其中介绍了对实现一个系统的信息流的分析,包含了一些基本的软件工程的方法。经过分析这些情况,该局域网聊天工具采用Eclipse为基本开发环境和java语言进行编写,首先可在短时间内建立系统应用原型,然后,对初始原型系统进行不断修正和改进,直到形成可行系统 关键词:局域网 聊天 socket java 指导老师签名: Internet Relay Chat Based On Java Student name:ZhangYi Class:058061 Supervisor: Chen Jianwen Abstract: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, QQ, 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, and 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, 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 chating tool takes Eclipse as the basic development environment and compiles in java language. first, it will establish the system application prototype in a short time. then, for the initial prototype system, it needs constantly revised and improved, until a viable system. Key words: LAN Chat Socket Java
Signature of Supervisor: 目 录 1. 绪论 1.1 JAVA 的网络功能与编程 …………………………………………………01 1.1.1 JAVA概述…………………………………………………………………02 1.1.2 JAVA的特点 ……………………………………………………………04 1.1.3 JAVA语言在网络上的应用 ……………………………………………07 1.2 JavaBeans技术 ……………………………………………………………08 1.3 IP/TCP协议常识 …………………………………………………………08 1.4 Socket的简介 ……………………………………………………………09 2. 规划设计 2.1 课题来源 ……………………………………………………………………11 2.2 需求分析 …………………………………………………………………11 3. 系统分析与设计方案 3.1 聊天系统的总体设计要点 ………………………………………………12 3.2 聊天系统的设计步骤及功能模块划分 ……………………………………12 3.3 功能模块结构图 …………………………………………………………13 4. 系统设计环境与测试 4.1 开发环境和工具 …………………………………………………………26 4.2 硬件环境 ……………………………………………………………………26 4.3 聊天系统的测试 …………………………………………………………26 5. 毕业设计总结 5.1 毕业设计总结和展望 ……………………………………………………28 5.2 经验和感想 …………………………………………………………………28 参考文献 …………………………………………………………………………33 致 谢 ………………………………………………………………………………34 本文选自毕业设计http://myeducs.cn |