欢迎来到天天文库
浏览记录
ID:45580520
大小:263.20 KB
页数:39页
时间:2019-11-15
《局域网毕业论文》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、成人高等教育毕业设计(论文)题目局域网聊天软件专业计算机网络应用专业班级学生一李荣指导教师丁树剑2013年随着计算机网络技术的发展,各种各样基于网络的应用也随之诞生,比如基于互联网的信息发布,通信,数据共享等等。局域网的发展也同样迅速。很多政府机构,金业,学校,都是先以一个统一的局域网联结在一起,再分别接入INTERNET.因此基于局域网的即吋通信工具,就这样应运而生了。所以木文提出了一个更加合理的设计,并在WINDOWS平台上加以了实现.在木实现内将客户端和服务端综合在一个程序之内,用多线程实现不同的并行任务。并进行了人性化的界面设计,使用起来更加简单方便,并且功能I•分合理,又易
2、于扩展以及个性化定制。在实际的网络环境里,同一时间只对一个用户服务是不可行的。一个优秀的网络服务程序除了能处理用户的输入信息,还必须能够同时响应多个客户端的连接请求。在Java'p,实现以上功能特点是非常容易的。设计原理:现代互联网不仅能给用户提供诸如搜索和电子邮箱等传统的信息服务,而且对实吋通信功能也有较好的支持。常'见的实吋通信软件都是基于C/S框架,要求客户端在通信前先联入服务器,才能和其他的联入服务器的用户进行通信。而点对点的通信则无需使用服务器,对个客户端可以直接互相通信,使用更为方便。主程序监听一端口,等待客户接入;同吋构造一个线程类,准备接管会话。当一个Socket会话
3、产生后,将这个会话交给线程处理,然后主程序继续监听。运用Thread类或Runnable接口来实现是不错的办法。关键词:局域网;即时通信;客户端;ServerSocket类;多线程AbstractTheDesignandImplementationofLANIMAbstract:Alongwiththehigh-speeddevelopmentofthecomputernetworktechnology,variousofapplicationsbasedonnetworkwasborn,likeinformationreleasing,datasharing...Thedevelo
4、pmentoftheLANisthesamefast.Somegovernments,enterprisesandschoolsconstituteaLANfirst.thenjoinintoINTERNET.SotheinstantmessengerinLANwasborned・SoImakeanewdesign,andimplementitonWINDOWSplatform.Inmyimplementationtheclientandtheserverwereintegratedinoneprogramwithmultithreadmechanism.AndhadagoodGUI
5、,Itwasveryeasytouseit.Andthefunctionisveryrealizable.Atlast,itisalsoeasyforexpanding・Infact,thereisonlyoneservicetotheuserwhichisnotcanbeused.Agoodprogramofnetworkservicemustcantoanswermanylinkrequestfromtheclientwhenuserinputmassages.SouseJAVAtocarryoutthesefunctionsandparticularsareveryeasy.D
6、esignPhilosophy:NotonlycouldthemodernInternettoprovidesuchassearchandmailboxtraditionalmessageservice,butthereal-timecommunicationfunctionalsobeenwellsupported・Thecommonsoftwareofthereal-timecommunicationisbaseonC/Sframe.Usershouldlinkserver,thencouldcommunicationwithothersuserswhoalsolinkserve
7、r.Butthereal-timecommunicationofpointtopointisneedn?tuseserver,betweenuserswhomcouldimmediatelycommunicationThemainprogramtomonitoraport,waitingtheuseraccessandconstructingathreadclasstotakeoverconversation.Whenthemainprogramprodu
此文档下载收益归作者所有