47JAVA聊天室设计

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

基于JAVA线程聊天室的设计与实现院(系):计算机学院专业:计算机科学与技术班级:学号:姓名:指导教师:2007年6月摘要随着科学技术的发展,计算机的普及,网络飞速发展的时代,聊天室的使用越来越频繁。因为几乎所有网民在上网时都会进行聊天,此时聊天室便可以提供给网站访问者一个对话交流的场所,通过聊天室可以加强访问者之间的沟通与交流,增加网站的吸引力,这就要求聊天室功能强大以及制作美观,让访问者感觉到舒适轻松。该聊天室基于JAVA中线程的思想,创建多线程的应用,结合JAVA输入流与输出流技术对消息进行管理和发送。该系统包括服务器端和客户端两部分。服务器端程序主要负责侦听客户发来的信息,客户端需登陆到服务器才可以实现正常的聊天功能。该聊天室,可以自由设定聊天室的名称和该聊天室里人员的数量,管理员可以选择让某访问者进入聊天室,也可在大家都同意的情况下将某访问者踢出该聊天室,在顺利进入聊天室后,聊天室的美观环境更让访问者感到心情愉悦,更重要的是该聊天室可以实现对所有访问者交谈,也可以选择对某个访问者进行交谈,在交谈过程中为了让对方真切体会到交谈者此时此刻的心情,还可以发送各种形象图片。该聊天室在发送信息过程中页面流畅,负载能力强,灵活易用,性能稳定。关键词聊天室,多线程,B/S模式AbstractAlongwiththescienceandtechnologydevelopment,thecomputerpopularization,thenetworkrapiddevelopmenttime,thechatroomuseismoreandmorefrequent.BecausenearlyallAccessesthenetthepersoninsurfertimecancarryonchats,thistimethechatroomthenmayprovidetoawebsitevisitordialogueexchangeplace,maystrengthenbetweenvisitor'scommunicationandtheexchangethroughthechatroom,increasesthewebsitetheattraction,thisrequeststhechatroomfunctionformidableaswellasthemanufactureartistic,letsthevisitorfeelcomfortableisrelaxed.ThischatroombasedontheJAVAmedianlineregulationthought,thefoundationmultithreadingapplication,unifiestheJAVAinwardfluxANDoutputtoflowthetechnologytocarryonthemanagementandthetransmissiontothenews.Thissystemcarriestwopartsincludingtheserverendandthecustomer.Theserverendprocedureprimarycognizanceinterceptstheinformationwhichthecustomersendsin,thecustomerendmustlandtotheserveronlythenmayrealizenormallychatsthefunction.Thischatroom,mayfreelyestablishthechatroominthenameandthischatroompersonnel'squantity,themanagermaychooseletssomevisitorenterthechatroom,alsomaysomevisitorkickinthesituationwhicheverybodyallagreedthischatroom,aftersmoothlyentersthechatroom,thechatroomartisticenvironmentletsthevisitorfeelthemoodisjoyful,moreimportantlythischatroommayrealizetoallvisitorsconverses,alsomaychoosetosomevisitorcarriesontheconversation,inconversationprocessinordertoletoppositepartyclearlyrealizeconversationthisverymomentmood,butalsomaytransmiteachkindofvividpicture.Thischatroomintransmissioninformationprocesspagesmooth,theloadcapacitystrong,nimbleiseasytouse,theperformanceisstable.KeywordsChatroom,Multithreading,Browser/ServerMode目录目录.............................................................................................................................................II第1章引言........................................................................................................................................41.1题目背景........................................................................................................................................41.2题目内容........................................................................................................................................51.3研究意义........................................................................................................................................6第2章需求分析................................................................................................................................72.1需求分析........................................................................................................................................72.2现状分析........................................................................................................................................92.3可行性分析....................................................................................................................................92.4开发工具论述.............................................................................................................................10第3章概要设计..............................................................................................................................123.1系统分析......................................................................................................................................123.2系统的功能描述.............................................................................................错误!未定义书签。3.3信息描述........................................................................................................................................9第4章详细设计..............................................................................................................................194.1数据库结构设计.............................................................................................错误!未定义书签。4.2接口设计.........................................................................................................错误!未定义书签。4.3过程设计........................................................................................................................................94.4系统的实现....................................................................................................................................9第5章调试分析.................................................................................................错误!未定义书签。5.1测试方法...........................................................................................

1 / 35
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功