南京航空航天大学本科毕业论文南京航空航天大学本科毕业论文题目基于JAVA的聊天系统的设计与实现年级专业班级学号学生姓名指导教师职称论文提交日期南京航空航天大学本科毕业论文基于JAVA的聊天系统的设计与实现摘要网络聊天工具已经作为一种重要的信息交流工具,受到越来越多的网民的青睐。目前,出现了很多非常不错的聊天工具,其中应用比较广泛的有Netmeeting、腾讯QQ、MSN-Messager等等。该系统开发主要包括一个网络聊天服务器程序和一个网络聊天客户程序两个方面。前者通过Socket套接字建立服务器,服务器能读取、转发客户端发来信息,并能刷新用户列表。后者通过与服务器建立连接,来进行客户端与客户端的信息交流。其中用到了局域网通信机制的原理,通过直接继承Thread类来建立多线程。开发中利用了计算机网络编程的基本理论知识,如TCP/IP协议、客户端/服务器端模式(Client/Server模式)、网络编程的设计方法等。在网络编程中对信息的读取、发送,是利用流来实现信息的交换,其中介绍了对实现一个系统的信息流的分析,包含了一些基本的软件工程的方法。经过分析这些情况,该聊天工具采用Eclipse为基本开发环境和java语言进行编写,首先可在短时间内建立系统应用原型,然后,对初始原型系统进行不断修正和改进,直到形成可行系统关键词:即时通讯系统B/SC/SMySQLSocketSwing南京航空航天大学本科毕业论文TheDesignandImplementationofInstantMessagingSystemBasedonJavaAbstractAlongwiththefastdevelopmentofInternet,thenetworkchatingtoolhasalreadybecomeonekindofimportantcommunicationtoolsandreceivedmoreandmorewebcamsfavor.Atpresent,manyextremelygoodchatingtoolshaveappeared.forexample,Netmeeting,QQ,MSN-Messagerandsoon.Thissystemdevelopmentmainlyincludestwoaspectsoftheserverprocedureofthenetworkchatandthecustomerprocedureofthenetworkchat.TheformerestablishestheserverthroughtheSocket,theservercanreadanddelivertheinformationwhichclientsidesends,andcanrenovatetheuserstabulation.Thelattermakeaconnectionwiththeserver,carriesoncommunicationbetweentheclientsideandtheclientside.WiththeLANcorrespondencemechanismprinciple,throughinherittingtheThreadkindtoestablishthemultithreadingdirectly.Inthedevelopment,itusestheelementarytheoryknowledgewhichthecomputernetworkprogrammes.forexample,TCP/IPagreement,Client/Serverpattern,networkprogrammingdesignmethodandsoon.Inthenetworkprogramming,itrealizesreadingandtransmissionoftheinformation,thatis,informatonflowsrealizetheinformationexchange,introduceinformationflowanalysisforrealizingasystem,inwhichcontainessomebasicsoftwareengineeringmethods.Afteranalyzesthesesituations,thischatingtooltakesEclipseasthebasicdevelopmentenvironmentandcompilesinjavalanguage.first,itwillestablishthesystemapplicationprototypeinashorttime.then,fortheinitialprototypesystem,itneedsconstantlyrevisedandimproved,untilaviablesystem.Keywords:InstantMessagingSystem;B/S;C/S;MySQL;Socket;Swing;南京航空航天大学本科毕业论文目录第1章引言...........................................................................................................11.1开发背景.............................................................................................................................11.2开发目的和意义.................................................................................................................11.3论文研究内容.....................................................................................................................2第2章即时通讯系统的相关研究.......................................................................32.1C/S开发模式......................................................................................................................32.2B/S开发模式......................................................................................................................32.3即时通讯原理......................................................................................................................42.4Javaweb、Struts2、AJAX、JavaScript应用技术....................................................42.5MySQL数据库应用技术....................................................................................................42.6Socket通信技术..............................................................................................................42.7开发环境的搭建.................................................................................................................5第3章系统分析.....................................................................................................53.1系统基本功能描述.............................................................................................................53.2可行性分析.........................................................................................................................63.3系统需求分析.....................................................................................................................63.3.1功能分析.......................................................................................................................6第4章系统设计.....................................................................................................84.1数据库设计.........................................................................................................................84.2系统模块设计......................................................................................................................94.2.1聊天系统工作原理图..................................................................................................94.2.2系统功能模块图:....................................................................................................104.2.3系统用例图:..............................................................................................................104.2.4活动图:...................................................................................................