文档详情

基于TCPI的网络聊天工具设计.doc

发布:2018-03-18约1.2万字共30页下载文档
文本预览下载声明
基于TCP/IP的网络聊天工具设计 【摘要】本系统是实现在局域网内多人在线聊天的聊天工具,主要是采用套接字的原理进行编程,将Visual C++6.0作为开发平台,并结合使用VC++中的开发框架MFC。系统是在TCP/IP网络环境下,采用客户机/服务器的模式进行设计,将各任务合理的分配到服务器和客户端,在很大程度减少系统资源的消耗以及通信的开销。该聊天工具主要是设计成类似QQ群的聊天室,其中服务器是接收并处理来自客户端的消息,客户端主要是实现申请新账号、进入聊天室、聊天室内的群聊、用户间的私聊、发送和接收离线消息等主要功能。本文主要针对系统的研究现状、研究目标、开发过程等进行说明,并对各个模块的设计流程进行详细分析。 【关键词】TCP/IP,Winsock网络编程,客户机/服务器模式,聊天工具 Design for the Network Chatting Tool Based on TCP/IP 【Abstract】:The system is a network chat tool which could make multiuser communicate on line. The system is mainly use the socket principal to program. The program platform is VC++6.0 which has much function. And MFC class library is combined to make the system’s function come true. The Server and Client has the task on their’ own which is a wonderful network model can reduce the consumption of system. The chat tool is designed to be similar with QQ group where Server receives and deals with the datagram from Client. And the Client achieves the target. Such as register, log in, send and receive datagram and so on. The paper is mainly to explain the research status and program process. And then it also emphasizes on the design method of every block. 【Keyword】:TCP/IP, Winsock program,Client/Server,Chat Tool 目录 第一章 引言 1 1.1聊天系统的研究现状 1 1.2 聊天系统的开发目标 1 1.3 聊天系统的开发意义 1 1.4 论文的主要内容 2 第二章 开发工具和关键技术 3 2.1 开发工具 3 2.2 TCP/IP协议 3 2.3 客户机/服务器模式 3 2.4 套接字网络编程 4 2.4.1套接字简介 4 2.4.2 TCP套接字的应用 6 2.5 MFC(Microsoft Foundation Class) 7 2.5.1 MFC简介 7 2.5.2 MFC类库 7 第三章、系统设计 9 3.1设计原理 9 3.2 系统总体功能结构 9 3.3 建立类模型 11 3.3.1服务器端类 11 3.3.2 客户端类 13 第四章 系统模块详细设计 15 4.1服务器模块 15 4.2 客户端模块 15 4.2.1注册模块 15 4.2.2登陆模块 15 4.3 文字聊天模块 16 4.3.1私聊模块 16 4.3.2群聊模块 16 第五章 系统测试 17 5.1 测试目的 17 5.2 测试内容与结果 17 5.2.1服务器测试 17 5.2.2 单元模块测试 17 5.2.3系统评价: 23 第六章 总结 24 6.1毕业设计的总结 24 6.2 经验和感想 24 致 谢 25 参考文献 26 第一章 引言 1.1聊天系统的研究现状 在高速发展的信息时代,人们有众多的通讯手段[1]。比如电话、手机、邮箱等。每个工具都存在不完善的地方,比如邮箱存在实时性的问题,手机、电话等在通信的过程中不能实现一对多的聊天。因此为了填补这个漏洞,开发出网络聊天工具是至关重要的。如今网络聊天工具的发展也逐渐形成规模,它不仅价格便宜、通讯迅速,且能同时与多位好友进行在线聊天。近几年来,网络聊天工具有了更为广阔的市场和
显示全部
相似文档