UDP局域网QQ聊天程序设计说明书.doc
摘要随着网络技术的发展及人们生活的需求,网络聊天已越来越受到人们的青睐。网络聊天已经成为人们工作生活中传递信息、交流感情的重要工具,给人们带来了很大的方便。本设计开发的是一个局域网QQ聊天软件,运用软件工程的设计流程,使用现在比较普遍和流行的C#语言,采用面向对象的方法,综合运用数据库编程技术、多线程开发技术、网络通讯技术,以MicrosoftVisualStudio2005作为系统前台应用程序开发工具,MicrosoftSQLServer2000作为后台数据库管理系统,在WindowsXP平台下进行开发。本局域网QQ聊天软件采用服务器端/客户端(C/S)模式。客户端采用UDP与服务器连接,客户端之间也是通过UDP互相通讯。服务器端主要用于开启和关闭UDP协议的监听服务,还可以查看局域网内已注册的所有的用户以及他们的在线状态。客户端分为注册窗口、登录窗口、QQ窗体主界面以及聊天界面。服务器端要先开启监听服务,客户端才可以进行登录,然后才可以与其他登录的在线用户进行文本信息的聊天,还可以进行点对点的语音聊天,视频聊天和文件传输,还可以进行拍照和录像等。此外,还对该软件进行了皮肤的加载以及打包成安装源。该软件运行稳定,界面美观、操作简便。在局域网内部使用该局域网QQ聊天软件,可以方便人与人之间的沟通、交流;可以大大提高企业的工作效率;拉近人与人之间的关系。关键词:局域网;聊天软件;客户端;服务器端;UDP协议毕业设计(论文)报告用纸AbstractWiththedevelopmentofnetworkingtechnologyandthelivingdemandofpeople,chattingonnetworkismoreandmoreacceptablebypeople.Internetchathasbecomeanimportanttooltotransmissionofinformationandexchangeoffeelingsinourlife,itbringsagreatconvenience.ThetopicofthispaperisgoingtotalkaboutthattodevelopthelocalareanetworkQQchatsoftware.Thislocalareanetworkchatsoftwareusingthedesignstreamofthesoftwareproject,usingtheC#languagewhichisverycommonandpopular,usingtheobject-orientedapproach,thetechnologyofthedatabaseprogramming,multi-threadingdevelopmenttechnologyandthenetworkcommunicationtechnology,makesMicrosoftVisualStudio2005asthefrontapplicationdesigntool,MicrosoftSQLServer2000areusedasthebackgroundDBMS(thedatabasemanagementsystem),anditwasprogrammedintheWindowsXPSystem.ThelocalareanetworkQQchatsoftwareusestheserverandclient(C/S)mechanism.AndtheclientconnectstheserverusingUDP,andtheycommunicateeachotherbyUDP.Server-sideismainlyusedtoopenandclosetheUDPprotocolmonitoringservice,andyoucanalsolookoveralltheregisteredusersandtheironlinestatuswhominthelocalareanetwork.Clientisdividedintoregistrationwindow,theloginwindow,themainQQformandthechatform.Iftheclientwantstologin,theservermonitoringservicemustfirstopenthelisteningservice,thentheclientcanchatwiththeotherswhichhavealreadylogged,andalsocanvoicechat,videochatandfilestransfers,andalsocantakepicturesandvideos.Inaddition,thesoftwarehasbeenloadthebeautifulskinandpackageintotheinstallationsource.Thissoftwarehasaninterfaceaesthetics,stableoperation,simpleoperation.UsingQQsoftwareintheLANinternalcanhelppeopletocommunicatewithotherseasily,cangreatlyimprovetheefficiencyoftheenterprises,closerelationshipsbetweenpeople.KeyWords:LocalAreaNetwork;ChatSoftware;Client;Server-side;UDPprotocol毕业设计(论文)报告用纸目录引言.11系统概述与需求分析.21.1系统概述.21.2需求分析.21.2.1功能需求31.2.2性能需求31.3可行性分析.42系统总体设计.52.1相关开发技术的原理性说明.52.1.1.NETFramework和C#.52.1.2SQLServer2005.62.1.3UDP协议简介62.1.4Socket简介.62.2系统功能结构.72.3业务流程图.82.4程序运行环境.83数据库以及类库的详细设计与实现.93.1数据库的创建.93.1.1数据库分析93.1.2数据库创建93.1.3数据库概念设计.93.1.4数据库逻辑结构设计.93.1.5文件夹组织结构.103.2类库的设计.104客户端模块的详细设计及实现.124.1客户端注册模块的设计.124.1.1客户端注册模块概述.124.1.2客户端注册模块技术分析.134.1.3客户端注册模块实现过程.134.2客户端登陆模块设计.144.2.1客户端登陆模块概述.144.2.2客户端登陆模块技术分析.144.2.3客户端登陆模块实现过程.14毕业设计(论文)报告用纸4.3客户端QQ模块设计154.3.1客户端QQ模块概述.154.3.2客户端QQ模块技术分析.154.3.3客户端QQ模块实现过程.164.4客户端消息发送模块设计.174.4.1客户端消息发送模块概述.174.4.2客户端消息发送模块技术分析.184.4.3客户端消息发送模块实现过程.185服务器端模块的详细设计与实现.235.1服务器端控制台窗体概述.235.2服务器端控制台窗体技术分析.235.3服务器端控制台窗体实现过程.236系统特色及关键技术.247结论.25谢辞.28参考文献.29附录.30