资源描述:
《毕业论文--基于LAN的聊天系统》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、2007届毕业生毕业论文题目:基于LAN的聊天系统院系名称:专业班级:学生姓名:学号:指导教师:教师职称:2007年6月5日2摘要随着网络技术的飞速发展,网络在人们的生活中所扮演的角色越来越多,也越来越重要,我们可以借助网络进行网上购物、网上求医问药、网上银行、网上报名等。我们的人际关系网也可以在网上进行,人们可以通过这个空间进行网络聊天,实现彼此沟通,交换信息,甚至网络聊天工具在部分人的生活中大有与传统的电话通信手段同等重要的趋势。本系统是一个基于LAN且没有服务器的聊天系统,其具有聊天、文件传输、聊天的历史纪录查询和在线人员管理等功能
2、。用户在使用本程序登录后,会以UDP报文的形式向整个网络广播自己上线的信息,其他在线用户收到新用户上线的消息后,会自动将其加到朋友链表中;而且,用户在登录以后会每隔一定时间以UDP报文的形式向整个网络广播自己在线的消息;当用户下线的时候,仍会以UDP报文的形式向整个网络广播自己下线的消息。聊天报文也采用UDP的形式从一个用户向指定的用户传送。文件传输采用TCP/IP协议,以保证文件的传输。聊天纪录以用户的特有ID号作为标志存储,当点击某ID时就会将本用户与此ID用户的聊天信息显示出来。关键词:LAN聊天文件传输聊天纪录29TitleCha
3、tsthesystembasedonLANAbstractAlongwiththenetworktechnologyrapiddevelopment,thenetworktherolewhichactsinpeople'slifemoreandmoremany,alsoismoreandmoreimportant,wemaydrawsupportfromthenetworktocarryontheon-lineshopping,on-linetoseekmedicalhelpaskthemedicine,theon-linebank,th
4、eon-lineregistrationandsoon.Ourinterpersonalrelationshipnetworkalsomayon-linecarryon,thepeoplemaycarryonthenetworkthroughthisspacetochat,realizeeachothercommunication,exchangestheinformation,eventhenetworkchatsthetoolgreatlytohaveinthepartialpeople'slifewiththetraditional
5、telephonecommunicationmethodequallyimportanttendency.ThisprocedureisalsodoesnothavetheserverbasedonLANtochattheprocedure,ithaschatsfunctionandsoonhistoricalrecordinquiryandon-linepersonnelmanagementwhich,thefiletransfer,chats.Theuserafterusesthisproceduretoregister,canbro
6、adcastononeselfthelineinformationbytheUDPtextofatelegramformtotheentirenetwork,afterotheron-lineusersreceiveonthenewuserthelinenews,canautomaticallyaddtoitinthefriendchaintable;Moreover,theuserwillberegisteringlatertobeableatregularinteralstobroadcasttheoneselfon-linenews
7、bytheUDPtextofatelegramformtotheentirenetwork;Whenuserwindingtime,stillcouldbroadcasttheoneselfwindingbytheUDPtextofatelegramformtotheentirenetworkthenews.ChatsthetextofatelegramalsotouseUDPtheformfromausertotheusertransmissionwhichassigns.ThefiletransferusestheTCP/IPagre
8、ement,guaranteesthedocumentthetransmission.Chatstherecordtosavebyuser'suniqueIDnumberasthesymbol