资源预览内容
第1页 / 共35页
第2页 / 共35页
第3页 / 共35页
第4页 / 共35页
第5页 / 共35页
第6页 / 共35页
第7页 / 共35页
第8页 / 共35页
第9页 / 共35页
第10页 / 共35页
亲,该文档总共35页,到这儿已超出免费预览范围,如果喜欢就下载吧!
资源描述
. . . 学号2009110121河 南 警 察 学 院毕 业 论 文(设计)系 别 信息系 专 业 计算机网络安全监察 论文(设计)题目 基于c/s架构的Java网络聊天系统 35 / 35目 录摘要.1关键词.1Abstract.2Key Words.21.引言.31.1开发背景.61.2开发目的和意义.61.3论文研究容.72.即时通讯系统的相关研究.72.1 C/S开发模式.72.2即时通讯原理.82.3 Socket通信技术83.系统分析.93.1系统基本功能描述.93.2可行性分析.93.3系统需求分析.103.3.1功能分析.104.系统设计.114.1数据库设计114.2数据库模块设计124.2.1聊天系统工作原理图.124.2.2系统功能模块图134.2.3系统用例图134.2.4活动图.144.3系统类设计.165.系统实现.175.1实现概况.175.2注册模块.185.2.1流程图185.2.2关键代码185.3登录模块.205.3.1流程图205.3.2关键代码205.4聊天模块.235.4.1流程图235.4.2关键代码235.5文件模块.245.5.1流程图245.5.2关键代码255.6用户管理模块.265.6.1流程图.265.7用户/服务器界面的设计.275.8结语.30基于c/s架构的JAVA网络聊天系统的设计与实现摘 要网络聊天工具已经作为一种重要的信息交流工具,受到越来越多的网民的青睐。目前,出现了很多非常不错的聊天工具,其中应用比较广泛的有Netmeeting、腾讯 、MSN-Messager等等。该系统开发主要包括一个网络聊天服务器程序和一个网络聊天客户程序两个方面。前者通过Socket套接字建立服务器,服务器能读取、转发客户端发来信息,并能刷新用户列表。后者通过与服务器建立连接,来进行客户端与客户端的信息交流。其中用到了局域网通信机制的原理,通过直接继承Thread类来建立多线程。开发中利用了计算机网络编程的基本理论知识,如TCP/IP协议、客户端/服务器端模式(Client/Server模式)、网络编程的设计方法等。在网络编程中对信息的读取、发送,是利用流来实现信息的交换,其中介绍了对实现一个系统的信息流的分析,包含了一些基本的软件工程的方法。经过分析这些情况,该聊天工具采用Eclipse为基本开发环境和java语言进行编写,首先可在短时间建立系统应用原型,然后,对初始原型系统进行不断修正和改进,直到形成可行系统。关键词:即时通讯系统 C/S Socket SwingThe Design and Implementation of Instant Messaging SystemAbstractAlong 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, , 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 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.Keywords:Instant Messaging System; C/S ;Socket; Swing;1.引言1.1 开发背景随着互联网的快速发展,网络聊天工具已经作为一种重要的信息交流工具,受到越来越多的网民的青睐。目前,出现了很多非常不错的聊天工具,其中应用比较广泛的有Netmeeting、腾讯 、MSN-Messager等等。无论是个人还是企业等组织机构,对沟通的需求也在不断发展,传统的、 、等沟通方式显然已无法满足当今人们工作和生活沟通的需要。随着软件、网络和通讯三大现代信息技术的发展,在沟通、协作方面有着更多方便、快捷、实时等优势的即时通讯,成为继、E-Mail之后又一个完全融入每个人生活的互联网工具。Java是一个由Sun公司开发而成的新一代编程语言。使用它可在各式各样不同种机器、不同种操作平台的网络环境中开发软件。不论你使用的是哪一种WWW浏览器,哪一种计算机,哪一种操作系统,只要WWW浏览器上面注明了“支持Java”,你就可以看到生动的主页。Java正在逐步成为Internet应用的主要开发语言。它彻底改变了应用软件的开发模式,带来了自PC机以来又一次技术革命,为迅速发展的信息世界增添了新的活力。1.2 开发目的和意义网络通信在当今信息社会中起着不可或缺的作用,人们可以利用网络通信技术进行即时的信息 交流。比如说 聊天工具,它就是利用网络通信技术开发的一款众所周知的网络聊天工具。通讯工具最初虽为聊天而诞生,但其作用早已超出了聊天的畴,随着企业即时通讯工具的出现,即时信息在网络营销中将发挥更大的作用。目前,信息交流是互联网提供的主要容,网络通信系统有多种实现方 式,类似ICQ属于一种点对点的聊天系统;还有一种是基于Socket的集中式聊天系统,这种聊天系统需要登录统一的聊天服务器。考虑到要可以在局域网中应用,本系统使用的是第二种方法,经过设置,在局域网或internet上都可以使用。1.3 论文研究容1、即时通讯原理首先验
收藏 下载该资源
网站客服QQ:2055934822
金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号