文档详情

毕业论文--基于VC的局域网聊天室设计与实现.doc

发布:2017-09-18约2.18万字共40页下载文档
文本预览下载声明
目 录 摘 要 I Abstract II 1 绪论 1 1.1 论文的目的和意义 1 1.2 论文的主要内容 2 2 国内外聊天系统的现状 3 3 开发环境及编程语言介绍 5 3.1 Visual C++可视化集成开发环境 5 3.2 网络编程 5 4 局域网聊天室的设计 7 4.1 客户机/服务器模式 7 4.2 系统实现原理 7 4.3 系统工作流程 10 4.4 界面设计 11 5 局域网聊天室的实现 12 5.1 准备工作 12 5.2 功能实现 15 6 结论 27 参考文献 29 附 录 30 致 谢 38 随着计算机科学和Internet 的飞速发展, 网上聊天已成为人们相互交流的一种方式, 与E-mail、电话相比, 聊天服务更具有实时性和有效性。主要研究了在TCP/IP协议下局域网聊天室。 此局域网聊天采用客户端/服务器(C/S)模式和TCP连接。它有两个组成:服务器和客户端服务器模块主要用来维护网络上所有用户的信息,如用户名聊天客户端模块主要包括用户登录、发送信息、接收信息等整个工程采用结构化的方式进行编译,逐步完善系统功能。 系统采用CSocket实现连网功能。CSocket是MFC在CAsyncSocket基础上派生的一个同步阻塞Socket的封装类。而Socket是Windows中得到广泛应用的、开放的、支持多协议的网络编程接口。 该聊天室是一套适用于Internet网络使用的网络聊天,其操作简单,灵活性好,运行也比较稳定。 VC++;套接字;传输控制协议;网络;聊天室 Abstract Along with the high-speed development of the computer science and Internet, chatting on line has been an important method in our communication. Comparing with E-mail and telephone, the chat-line service is more real-time and effective. The subject under discussion adopts the method of the software project ,use procedure designing technique and the network technology. The project use Visual C++6.0 as the development tools,mainly studies under the TCP/IP protocol of LAN chat rooms. This local area network chat tool adopts client/server mechanism(C/S) and TCP.It is composed of two components:the server and the client. The server model is mainly used to prootect all users ’ information ,incuuding user’s name and so on;The client model includes user regediting,,sending message,receiving message and so on. System uses CSocket to achieve networking. CSocket is a synchronous blocking Socket wrappers derived by MFC based on CAsynncSocket. The Socket is widely used for open, multi-protocol network programming interface in windows. This network chat tool can be used in internet environment ,it can be operated simply, its flexibility is fine and can run steadily. Key Words:VC++;CSocket;TCP; 1 绪论 在网络越来越发达的今天,人们对网络的依赖越来越多,越来越离不开网络,由此而产生的聊天工具越来越多,例如,国外的ICQ、国内腾讯公司开发的OICQ。基于VC++网络编程的强大功能,本次毕业设计使用VC++编写一个聊天系统。 用户需求
显示全部
相似文档