局域网即时聊天程序的设计与实现.doc
1大学本科毕业论文局域网即时聊天程序的设计与实现作者院系工学院计算机科学与技术系专业计算机科学与技术年级学号指导教师答辩日期成绩2摘要局域网即时聊天通过进行文本聊天和语音聊天来实现彼此沟通、交流信息。本次局域网即时聊天程序设计主要用了VisualC+编程环境,实现了在LAN中在线用户的文本、语音交互。在设计里涉及到了网络通信基本原理和Socket编程及语音处理API技术。由于程序是在TCP/IP环境下运行,所以分服务器端和客户端。服务器端和客户端是通过建立Socket链接来实现聊天功能。本次设计主要着重于语音聊天部分,在本次论文里主要以语音聊天的流程和各模块之间的关系及Socket处理为主说明。关键词:VisualC+编程环境网络通信基本原理Socket编程语言处理API3AbstractThelocalareanetworkchatsimmediatelythroughcarriesonthetexttochatwiththepronunciationchatsrealizeseachothercommunication,theexchangeinformation.ThislocalareanetworkchattedtheprogrammingmainlytouseVisualimmediatelytheC+programmingenvironment,hasrealizedinLANtheon-lineuserstextthepronunciationinteractiveInvolvedinthedesigntothenetworkcorrespondencebasicprincipleandthesocketprogrammingandthepronunciationprocessestheAPItechnology.BecausetheprocedureisinTCPUndertheIPenvironmentmoves,thereforedividestheserverendandtheclientside.TheserverendandtheclientsidearethroughestablishesSockettolinkrealizeschatsthefunction.Thisdesignmainlyemphaticallychatsinthepronunciationthepart,mainlybetweentheflowandvariousmodulesrelationsandthesocketprocessingwhichchatsbythepronunciationprimarilyexplainedinthispaper.Keywords:VisualC+programmingenvironmentnetworkcommunicationfundamentalsSocketprogrammingsoundAPI.4目录摘要.2英文摘要.3第一章:绪论.6一、背景介绍.6二、相关知识.6第二章:需求分析.9一、可行性分析.9二、需求分析.9(一)系统功能要求.9(二)系统性能要求.10(三)系统运行要求.10第三章:总体设计.11一、层次图.11二、各模块的功能及相互关系.11第四章:详细设计.13一、各模块具体流程.13(一)通信模块.14(二)声源采集模块.14(三)语音数据传输模块.14(四)音频再生模块.15