西安电子科技大学学士学位论文企业即时通信系统TheEnterpriseInstantMessaging学院:软件学院专业:软件工程班级:130912姓名:导师:摘要摘要随着网络通信技术的发展,网络已经成为人们获取信息,交流信息以及管理信息的重要途径。其中即时通信的出现无疑是网络通信领域的一场革命,他使人们能够随时随地的同任何地方的人进行快捷的交流。如今,网络即时通信已经逐步发展成为应用于各行各业的信息交流工具。本论文通过设计和实现一款集即时通信与内部组织管理于一体的企业内部即时通信系统,讨论并分析在TCP/IP协议的基础上设计并实现一个C/S结构的即时通信系统的详细过程。首先,介绍即时通信系统的现状,其次,分析和设计客户端与服务器端之间的通信协议,为上层的数据包交换以及系统功能实现模块提供规范的数据交流格式。然后,对系统中最重要的部分即数据包模块,进行详细的设计说明以及实现方案的阐述,最后,描述即时通信系统整体的系统功能的逻辑处理流程,以及实现过程。在当前这个信息时代,由于企业即时通信系统为公司提供的便捷的员工交流方式以及规范的公司组织管理功能,所以即时通信系统的设计与实现在各行各业中具有非常广泛的应用前景。关键词:即时通信企业应用程序TCP/IPC/SABSTRACTAbstractAsthewidespreadofwebapplication,internethasbecometheindispensabletoolforinformationacquisition,communicationandmanagement.Theadventofreal-timecommunicationhasbroughtpeoplegreatconvenienceaswellassavingtimeandmoney.Nowadays,web-basedreal-timecommunicationhasbeendevelopedtoacommunicationtoolformanyfields.Analyzesanddiscusstheprocessofdesigningandimplementingareal-timecommunicationsystemofC/SstructurebasedonTIP/IPprotocol,throughdesigningandimplementinganetworkapplicationcombinedthefunctionsofinstantcommunicationtoolandalsoapersonnelmanagementtool.First,tointroducesomenecessarytechnicalknowledgeandthefunctionaldesigning、systemstructuremoduledesigninganddatainformationdesigningofdevelopmentoftheIMsystem.Second,analyzeanddesignthecommunicationprotocolbetweenClientandServerofthesystemtoregularthedatatransportationprocessbetweenports.Third,describethedesigningandimplementationofthemostimportantpartofthesystemwhichisthewebtransportationcontrollingmodule.Finally,introducethelogicprocessingofthewholeIMsystemandsomeclientprogramsorcodewhichhavepassedthetestingofserverprogram.DesigningandimplementingofIMsystemhasadefiniteapplyingprospectintheaspectofbuildinganinteriorandownapplicationwhichgatherinstantmessagingandinformationmanaging.Keywords:InstantMessagingEnterpriseApplicationTCP/IPC/S目录目录摘要......................................................................................................................................................1Abstract................................................................................................................................................2目录......................................................................................................................................................1第一章绪论........................................................................................................................................11.1课题背景和意义..............................................................................................................11.2企业即时通信系统..........................................................................................................11.2.1概念......................................................................................................................11.2.2主要功能..............................................................................................................21.2.3主要应用领域......................................................................................................21.2.4企业即时通信系统现状......................................................................................31.3论文的主要工作和章节安排..........................................................................................3第二章企业即时通信系统需求分析................................................................................................52.1企业即时通信系统的需求分析......................................................................................52.2企业即时通信系统的用例说明......................................................................................52.3企业即时通信系统的功能描述......................................................................................5第三章通信模块................................................................................................................................93.1企业即时通信系统的通信协议......................................................................................93.1.1数据收发方式的设计和数据包结构的定义......................................................93.1.2通讯协议数据包在实现过程中的定义.............................................................113.1.3本节小结............................................................................................................163.2数据包传输模块的设计与实现....................................................................................163.2.1套接字的模型选择和多线程的运用................................................................163.2.2数据包传输模块的设计....................................................................................183.2.3数据包传输模块的实现....................................................................................193.2.4本节小结............................................................................................................21第四章业务逻辑模块......................................................................................................................234.1引言................................................................................................................................234.2登陆......................