HUNANUNIVERSITY毕业论文论文题目局域网即时聊天软件的设计与实现学生姓名蒋世兵学生学号专业班级计算机科学与技术五班学院名称信息科学与工程学院指导老师学院院长2012年06月04日湖南大学毕业设计(论文)湖南大学毕业设计(论文)第Ⅰ页局域网即时聊天软件的设计与实现摘要随着互联网的广泛普及,越来越多的人们开始通过网络来交流,本文就详细介绍了一款聊天软件的设计与实现过程。此聊天软件采用java语言编写,使用Eclipse作为开发工具,应用了面向对象的设计理念和原则。该系统采用c/s结构。在客户端与客户端之间、客户端与服务器之间通过socket传送消息。在客户端与服务端的实现过程中大量的采用了多线程,这样可以让客户端和服务端更加有效的完成所需服务。此外,后台数据库采用的是mySql数据库,其用来保存用户的相关信息。服务端与后台数据库建立连接是通过JDBC-ODBC桥连的方式来完成的。一旦连接建立,服务端就可以对数据库的数据进行访问和删除等操作。此聊天软件主要实现了文件传输、文本聊天、语音聊天、视频聊天、用户注册、修改好友备注、移动好友、添加删除好友、添加删除分组、创建删除群以及离线消息的处理等一系列功能。关键词:Java;数据库;多线程;文件传输;JMF;视频;音频湖南大学毕业设计(论文)第Ⅱ页DesignandImplementationofInstantMessagingSoftwareBasedonLANAbstractWiththewidespreadpopularityoftheInternet,MoreandmorepeoplebegantocommunicatewitheachotherthroughtheNetwork,thisarticledescribesthedesignandimplementationofachatsoftware.Thechatsoftwareadoptsjavalanguage,usingEclipseasadevelopmenttool,andadoptsdesignconceptsandprinciplesofobject-oriented.Thesystemusesthec/smode.Messagesaredeliveredbetweenclientandclient,clientandserverthroughthesocket.Theimplementationprocessoftheclientandserverusesmulti-threaded,whichwouldallowclientandservermoreefficienttocompletethenecessaryservices.Inaddition,theback-enddatabaseusesmySqldatabaseandstorestheuser'sinformation.Serverestablishsaconnectionwiththeback-enddatabasethroughthewayoftheJDBC-ODBCBridgeconnection.Oncetheconnectionisestablished,theservercanaccessanddeletedatasinthedatabase.Thischatsoftwareimplementsfunctionsoffiletransfering,textchatting,voicechatting,videochatting,userregistering,friendsnotesmodifying,friendsmoving,friendsaddinganddeleting,groupaddinganddeleting,groupcreatinganddeletingandofflinemessagesprocessing,etc.KeyWords:Java;database;multi-threaded;filetransfering;JMF;Video;Audio湖南大学毕业设计(论文)第Ⅲ页目录1绪论........................................................................................................................................11.1课题背景及目的.........................................................................................................11.2国内外研究状况.........................................................................................................11.3Java语言......................................................................................................................21.3.1Java语言发展历史...........................................................................................21.3.2Java语言的特点...............................................................................................31.4MySql数据库..............................................................................................................41.5JMF(多媒体框架)...................................................................................................41.5.1RTP与RTCP协议...........................................................................................41.5.2JMF实现视频传输...........................................................................................41.6课题研究的主要内容.................................................................................................62可行性分析与需求分析........................................................................................................72.1可行性分析..................................................................................................................72.1.1经济可行性......................................................................................................72.1.2技术可行性......................................................................................................72.1.3运行可行性......................................................................................................72.2需求分析.....................................................................................................................82.2.1系统功能需求...................................................................................................82.2.2系统用例图.......................................................................................................83概要设计..............................................................................................................................123.1整体框架...................................................................................................................123.2模块设计...................................................................................................................133.3数据库设计...............................................................................................................133.3.1实体E-R图.....................................................................................................133.3.2数据库表.........................................................................................................15湖南大学毕业设计(论文)第Ⅳ页4详细设计与实现..................................................................................................................184.1客户端的设计与实现...............................................................................................184.1.1用户登录与注册.......................................................................