资源描述:
《基于cs模式的聊天系统的设计与实现 毕业论文》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、【摘要】随着互联网的快速发展,网络聊天已经成为人们日常交流沟通的不可或缺的方式,很受人们的青睐。同时国内外也出现了很多非常不错的聊天工具,其中应用比较广泛的有腾讯QQ、微软skype等等。本系统使用JAVA语言并基于C/S模式进行开发。通过Socket建立服务器与客户端间的TCP连接,服务器读取、转发客户端发来信息,并刷新用户列表。用流程图的方式对系统使用中的注册、登录、发送信息等过程进行分析,用直接继承Thread类来实现多线程,用TCP/IP协议进行客户端与服务器端的通信,并使用网络编程的常用技术和一些软件工程的基本方法来完成聊天子系统和文件子系统的设计研发
2、。在分析聊天系统的具体情况后,本系统采用Eclipse为基本开发环境并使用java语言进行编写,首先可在短时间内建立系统应用原型,然后,对初始原型系统进行不断修正和改进,直到形成可行的系统。【关键词】局域网聊天SocketJAVAIIIDesignandImplementationofChatSystembasedonC/Smodel【Abstract】AlongwiththefastdevelopmentofInternet,networkchathasbecomeindispensabletoPeople'sDailycommunication,isvery
3、popularwiththepeople.Atthesametimealsoappearedalotofverygoodchattoolsathomeandabroad,iswidelyusedinithaveTencentQQ、Skypeandsoon.ThissystemismainlybasedontheJAVAlanguageandC/Smodeofdevelopment.TheserverisestablishedthroughtheSocket,theservercanreadanddelivertheinformationwhichclientsi
4、desends,andcanrenovatetheuserstabulation.WiththeLANcorrespondencemechanismprinciple,throughinheritingtheThreadkindtoestablishthemultithreadingdirectly.Inthedevelopment,itusestheelementarytheoryknowledgewhichthecomputernetworkprogrammeforexample,TCP/IPagreement,Client/Serverpattern,ne
5、tworkprogrammingdesignmethodandsoon.Inthenetworkprogramming,itrealizesreadingandtransmissionoftheinformation,thatis,informationflowsrealizetheinformationexchange,introduceinformationflowanalysisforrealizingasystem,inwhichcontainssomebasicsoftwareengineeringmethods.Afteranalyzestheses
6、ituations,thissystemtakesEclipseasthebasicdevelopmentenvironmentandcompilesinjavalanguage.first,itwillestablishthesystemapplicationprototypeinashorttime.then,fortheinitialprototypesystem,itneedsconstantlyrevisedandimproved,untilaviablesystem.【Keywords】LANChatSocketJAVAIII目录第一章绪论11.1课
7、题来源11.2国内外现状11.3研究的目的及意义2第二章需求分析32.1系统定义32.2可行性分析32.3功能需求32.4数据需求52.5用户界面要求5第三章数据库设计83.1数据库的概念83.2数据库的选择83.3数据库表的描述8第四章技术介绍124.1JAVA开发语言的选择124.2MVC设计模式134.3多线程简介154.4SQL语言154.5TCP/IP协议164.6Socket的简介17第五章系统实现195.1总体设计195.2具体设计20第六章结论43致谢44参考文献45附录数据库连接46III第一章绪论1.1课题来源根据当前网络的需求,网络聊天越来
8、越受各种网民所青睐。因此