本科毕业设计(论文)基于Java即时聊天系统的设计与实现学号:05学生姓名:何晶指导教师:范忠诚所在学院:计算机科学技术学院所学专业:计算机科学与技术专业2016年6月I摘要伴随着互联网的高速发展,产生了一系列与互联网相关的新鲜事物,即时聊天系统就是其中最具代表性的产物。即时聊天系统经过不断地发展,凭借其迅速、便捷、即时的特点,逐渐成为一种重要的信息交流工具,受到越来越多的网民的青睐。即时聊天系统开发主要包括两个方面:即时聊天系统服务器端设计、即时聊天系统客户端设计。即时聊天系统服务器端设计主要通过Socket套接字建立服务器,服务器能够读取和转发从客户端发来的信息,并且能够刷新用户列表。即时聊天系统客户端设计主要通过与服务器建立连接,从而使服务器端与客户端的信息进行交流。在这里,网络通信机制原理得到了运用,通过直接继承Thread类来建立多线程。同时,开发中利用了计算机网络编程的基本理论知识,如TCP/IP协议、客户端/服务器端模式(Client/Server模式)、网络编程的设计方法等。在网络编程中利用流来实现信息的交换,从而读取和发送信息。即时聊天系统采用myeclipse为基本开发环境和java语言进行编写,通过不断修正和改进初始原型系统,直至此系统完全可行为止。关键词:即时聊天系统;套接字;JavaIIAbstractAlongwiththehigh-speeddevelopmentofInternet,producedaseriesofnewthingsrelatedtotheInternet,instantmessagingsystemistheproductofoneofthemostrepresentative.Instantmessagingsystemthroughconstantdevelopment,withitsfast,convenient,real-timecharacteristics,becominganimportantcommunicationtool,getthefavourofagrowingnumberofInternetusers.Instantmessagingsystemdevelopmentmainlyincludestwoaspects:instantmessagingsystemserverclient,instantmessagingsystemdesign.InstantmessagingsystemdesignmainlythroughtheSocketserverSocketserver,theservercanreadandforwardfromtheclient'sinformation,andbeabletorefreshtheuserlist.Instantmessagingsystemdesignmainlybytheclientandtheserverconnectionisestablished,whichmakestheservertocommunicatewiththeclient'sinformation.Here,theprinciplehasbeenusingnetworkcommunicationmechanism,throughdirectinheritanceforbuildingamultithreadedThreadclass.Atthesametime,theuseofcomputernetworkprogramminginthedevelopmentofthebasictheoryofknowledge,suchasTCP/IPprotocol,Client/Servermode(Client/Servermode),networkprogrammingdesignmethod,etc.Usingflowinnetworkprogrammingtoachievetheexchangeofinformation,soastoreadandsendinformation.InstantmessagingsystemusingmyeclipseasthebasicdevelopmentenvironmentandtheJavalanguagetowrite,byconstantlyrevisedandimprovedtheinitialprototypesystem,untilthesystemiscompletelyfeasible.Keywords:Instantmessagingsystem;socket;Java1目录摘要..................................................................................................IAbstract.................................................................................................II第1章绪论.............................................................................................11.1课题背景.........................................................................................11.2国内外发展现状...............................................................................11.2.1国外发展现状.............................................................................11.2.2国内发展现状.............................................................................11.3开发目的和意义...............................................................................21.4系统设计的思想...............................................................................2第2章方案论证......................................................................................32.1方案分析.........................................................................................32.2可行性分析......................................................................................32.2.1经济可行性................................................................................32.2.2技术可行性................................................................................42.2.3操作可行性................................................................................42.2.4法律可行性................................................................................42.3方案的确定......................................................................................42.4系统设计的相关技术.........................................................................4第3章需求分析......................................................................................83.1系统基本功能描述............................................................................83.2系统需求分析..................................................................................83.3数据流图.........................................................................................83.4数据字典........................................................................................103.5用例图..........................................................................................12第4章系统概要设计...............................................................................144.1系统总体流程图..............................................................................144.2系统功能模块划分...........................................................................15第5章系统详细设计与实现......................................................................185.1系统设计与实现..............................................................................185.1.1注册模块..................................................................................185.1.2登录模块..................................................................................205.1.3聊天模块..................................................................................225.1.4后台管理模块........................................................................