毕业设计(论文)-基于局域网的通讯系统的设计

合集下载

基于局域网的即时通讯聊天室系统设计设计(1)

基于局域网的即时通讯聊天室系统设计设计(1)

本科毕业设计(论文)题目基于局域网的即时通讯聊天室系统设计部系地方生部专业电子信息工程基于局域网的即时通讯聊天系统的设计摘要随着计算机科学和Internet 的飞速发展, 网上聊天已成为人们相互交流的一种方式, 与E-mail、电话相比, 聊天服务更具有实时性和有效性。

本论文提出一个运行于VC平台上的局域网聊天软件的解决方案。

该聊天软件包括服务器端和客户端两个模块,客户端通过服务器端进行通信。

服务器端模块主要实现了服务器的配置和数据的传递;客户端模块主要实现了用户注册、登录、文字聊天等功能。

该软件采用异步套接字的非阻塞模式,并实现对象的序列化和MFC文件对象实现数据的保存。

该软件能够帮助企业在局域网内搭建起自己的聊天系统,避免企业内部员工使用类似QQ等软件泄露内部信息,但是该软件只实现了聊天的基本功能,还有很多不足之处需要改进。

关键字:局域网、即时通信、套接字、异步模式An instant messaging chat system based of LANAbstractAlong 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.This thesis proposes a solution of a LAN chatting software based on C++ language, which is operated on the VC platform. This chatting software includes two modules: the server and the client, which can communicate with each other. The server module mainly completes the sever device’s configuration. The client module mainly completes the users’ login, registration, instant messaging and so on. The software used model of non-blocking asynchronous socket , And to achieve the object and MFC series documents the preservation of the object data.This software can help the company to build their own chatting system in the local area network, and it also can avoid the staff of the company disclosing the insider information by using the other software such as QQ, but this software has only completed the basic function as a chatting system, so it need much more improvement.Key words:LAN 、Instant messaging、Socket、asynchronous modle目录摘要-------------------------------------------------------------------------------------------------- I Abstract ------------------------------------------------------------------------------------------------- II 1 概述-------------------------------------------------------------------------------------------------- 1 1.1 系统现状 ------------------------------------------------------------------------------------------------ 1 1.2 系统内容与目标 --------------------------------------------------------------------------------------- 21.3 系统综述 ------------------------------------------------------------------------------------------------ 22 系统开发环境和关键技术----------------------------------------------------------------------3 2.1 开发环境 ------------------------------------------------------------------------------------------------ 32.2 关键技术 ------------------------------------------------------------------------------------------------ 32.2.1 .Visual C++和面向对象程序设计----------------------------------------------------------------------------- 32.2.2 M F C --------------------------------------------------------------------------------------------------------------- 42.2.3 WINDOWS SOCKETS网络编程接口 ---------------------------------------------------------------------- 42.2.4 WSAAsyncSelect模型开发 ------------------------------------------------------------------------------------ 52.2.5 TCP/IP协议、TCP协议---------------------------------------------------------------------------------------- 62.2.6 Client/Server结构(客户机/服务器模式) ---------------------------------------------------------------- 83 系统分析与设计---------------------------------------------------------------------------------- 9 3.1 系统分析 ------------------------------------------------------------------------------------------------ 93.1.1 系统需求 ---------------------------------------------------------------------------------------------------------- 93.1.2 需求分析 ---------------------------------------------------------------------------------------------------------103.2 系统设计 ---------------------------------------------------------------------------------------------- 113.2.1 设计原则 --------------------------------------------------------------------------------------------------------- 113.2.3 工作流程 ---------------------------------------------------------------------------------------------------------123.2.4 功能设计 ---------------------------------------------------------------------------------------------------------133.2.5 共享数据类设计 ------------------------------------------------------------------------------------------------134 系统实现 ----------------------------------------------------------------------------------------- 164.1 服务器端设计实现 ---------------------------------------------------------------------------------- 164.1.1 服务器端静态类图 ---------------------------------------------------------------------------------------------164.1.2 服务器主要类介绍 ---------------------------------------------------------------------------------------------164.1.3 服务器端主要过程介绍---------------------------------------------------------------------------------------194.2 客户端设计实现 ------------------------------------------------------------------------------------- 254.2.1 客户端静态类图 ------------------------------------------------------------------------------------------------254.2.2 客户端主要类介绍 ---------------------------------------------------------------------------------------------254.2.3客户端主要过程介绍-------------------------------------------------------------------------------------------274.3系统测试----------------------------------------------------------------------------------------------- 324.3.1 测试意义-------------------------------------------------------------------------------------------- 324.3.2软件测试的目标-------------------------------------------------------------------------------------------------324.3.2软件测试的方法-------------------------------------------------------------------------------------------------324.3.3 测试用例 ---------------------------------------------------------------------------------------------------------33总结与展望 ------------------------------------------------------------------------------------------- 34参考文献 ---------------------------------------------------------------------------------------------- 36致谢 ------------------------------------------------------------------------------------------------- 371 概述近年来,随着全球信息化进程的不断发展,网络也在飞速发展。

局域网内即时通讯系统的设计与实现

局域网内即时通讯系统的设计与实现

摘要互联网诞生于传统的电话网络,通讯交流可以说是互联网天然的应用之一。

Internet是目前世界上最大的计算机互联网络,它遍布全球,将世界各地各种规模的网络连接成一个整体。

随着网络通信技术和计算机技术的进一步发展,即时通信正在成为网络在线活动中不可缺少的业务。

近年来计算机技术的快速发展,特别是计算机网络的发展,越来越深刻的改变了人们生活的方方面面。

Socket是TCP/IP协议的编程接口,利用Socket提供的一组API就可以编程实现TCP/IP协议。

本文论述了使用包与Java.awt包提供的类和接口,开发了一款即时通讯系统“LanMessage”,可实现点对点的文字聊天、群发消息、文件传输等功能,经测试,系统基本达到预期的设计目标。

关键词:Java,局域网,即时通讯,TCP/IPABSTRACTInternet was born in the traditional telephone network while communication exchange can be said of the Internet natural one. Internet is now the world's largest computer Internet, it spread globally, of all sizes around the world connects to the network as a whole. With the network communication technology and the further development of computer technology, instant communication network online activities are becoming indispensable to business. In recent years, computer technology is developing rapidly, in particular the development of computer networks, increasingly profound changes in all aspects of people's lives.Socket is the Programming Interface of TCP/ IP , namely using a set of API , offered by Socket , programming to realize TCP/ IP. This paper takes use of the class and interface of packets and Java. awt packet, using JDK6.0. developed instant communications software "LanMessage." The software include client, the client has a general communications software functions, including: point-to-point text chat function, file transfer function,Mass function, After testing the basic system design to achieve the desired objectives.Keywords: Java, Lan, Instant communication, TCP / IP目录摘要.................................................................................................................................... I ABSTRACT..................................................................................................................... II 第1章引言 (1)1.1背景 (1)1.2 JA VA以及相关技术 (2)1.2.1 Java的由来与定义 (2)1.2.2 Socket (4)1.2.3 Java编译工具NetBeans (4)1.3论文的组织结构 (5)1.4本章小结 (5)第2章系统实现的相关知识 (6)2.1通信协议与模型 (6)2.1.1 OSI模型 (6)2.1.2 TCP/IP协议 (6)2.1.3 TCP协议与UDP协议的比较 (8)2.2基于S OCKET通信的基本应用模式 (9)2.2.1 Socket的基本通讯模式 (9)2.2.2 Java Socket传输模式 (10)2.3S OCKET连接的过程 (11)2.4双方之间的网络连接 (12)2.4.1 使用Java控制UDP协议 (12)2.4.2 在Java中操作UDP (13)2.5本章小结 (14)第3章系统的需求分析与设计 (15)3.1需求分析 (15)3.1.1 功能需求 (15)3.1.2程序界面设计 (15)3.2总体设计 (15)3.2.1 系统结构设计 (15)3.2.2 系统功能模块设计 (16)3.3本章小结 (17)第4章详细设计 (18)4.1主要功能模块 (18)4.1.1 系统主界面 (18)4.1.2 文字聊天模块 (20)4.1.3 文件传输模块 (22)4.2其他功能模块 (28)4.2.1查看本地IP (28)4.2.2添加黑名单模块 (28)4.2.3添加好友列表模块 (30)4.2.4退出模块 (31)4.3本章小结 (32)第5章结束语 (33)致谢 (34)参考文献 (35)第1章引言随着计算机网络日新月异的发展,人们的交流方式越来越多,传统的交流方式,如:信件、电报、电话等已经难以满足人们的交流要求,在互联网上即时的和好友取得联系,已经成为当今社会人们主流的联系方式。

局域网聊天系统的设计与实现设计

局域网聊天系统的设计与实现设计

第一章绪论1.1 课题背景随着Internet的不断发展普及,网络通讯成为人们生活中的一部分。

网络聊天已和手机等一样,成为人们运用最为广泛的通信工具之一。

即时通讯(Instant Messenger,简称IM)软件可以说是目前我国上网用户使用率最高的软件,无论是老牌的ICQ,还是国内用户量第一的腾讯QQ,以及微软的MSN Messenger都是大众关注的焦点,它们能让你迅速地在网上找到你的朋友或工作伙伴,可以实时交谈和互传信息。

而且,现在不少IM软件还集成了数据交换、语音聊天、网络会议、电子邮件的功能。

IM软件的历史并不久远,但是它的出现,就立即受到大家的喜爱,并风靡全球。

在它的发展史上,以色列人是功不可没的。

正是四位以色列年轻人,在1996年7月成立的Mirabilis公司,并于同年11月推出了全世界第一个即时通讯软件ICQ,取意为“我在找你”——“I Seek You”,简称ICQ了。

直到现在,ICQ已经推出了它的2002a版本,在全球即时通讯市场上占有非常重要的地位。

目前,国内最为流行的即时通讯软件是OICQ(简称QQ)。

它以良好的中文界面和不断增强的功能形成了一定的QQ网络文化。

Messenger虽出道较晚,但依托微软的强大背景,实力也不可小视。

作为Windows XP的一部分,Messenger 整合了操作系统的许多功能,体现出了微软的真正实力所在,如多种形式的聊天选择、多人的单窗口讨论式交流以及充分的文件与桌面共享功能等。

它的令人耳目一新的中文界面和注册方式,连同它强大的功能,着实吸引了众多的眼球的注视,此外还有许多有特点的IM软件。

我们经常听到TCP/IP和UDP(用户数据报协议)这两个术语,它们都是建立在更低层的IP协议上的两种通讯传输协议。

TCP/IP是以数据流的形式,将传输数据经分割、打包后,通过两台机器之间建立起的虚电路,进行连续的、双向的、严格保证数据正确性的文件传输协议。

局域网聊天室系统的设计与实现毕业设计

局域网聊天室系统的设计与实现毕业设计

基于局域网的视频聊天室系统的设计与实现摘要视频聊天系统作为一种新型的通信和交流工具,突破了地域的限制,可以提供更为便捷、灵活、全面的音、视频信息的传递和服务,具有极其广泛的发展前景。

本文介绍了采用Microsoft Visual C++ 6.0编程开发视频聊天系统的一套比较常用的解决方案。

文字聊天采用TCP模式;语音视频聊天采用UDP模式,在客户端之间点对点的进行。

在该方案中,通过函数库VFW来实现视频捕获、影像压缩以及影像播放。

微软公司提供的专门用于视频捕获开发的工具包VFW,为在Windows操作系统中实现视频捕获提供了标准的接口,从而大大降低了程序的开发难度。

在视频传输方面,则通过组建视频帧,将位图形式的视频帧压缩成帧格式的Mpeg4流,传输到客户端后,解压并显示影像。

同时,在本方案中,采用了线程来实现语音录制和语音回放,最终实现了通过服务器中转的文字聊天、点对点的语音视频聊天。

关键词:文字聊天;VFW;视频捕获;视频传输;语音录制;语音回放The Design and Realization of LAN-Based Video Chat RoomSystemAbstractAs a new tool about communication, video chatting system has broken through geographical restrictions, has provides more convenient, flexible and complete transmission and service. Furthermore, it has a very bright future.The common solution about how to develop a video chatting system is introduced by the Microsoft Visual C + + 6.0 programming. TCP model is used in the text chatting and UDP for the point-to-point video chats between the Clients. In this plan, Video Capture, Video Compression Manager and DrawDib are realized by the functions of VFW Library. The special kit VFW (Video for Windows) in video capture offered by Microsoft Corporation, has provided a standard interface for video capture in Windows Operating System and thus greatly reduced the hardship of programming. In video transmission aspect, it requires a video frame which is compressed the video frame of bitmap into Mpeg4 steam of frame form. Then it will be decompressed into images since it has been arrived the Client. Meanwhile, the thread is used to achieve audio recording and replaying. Finally, it has realized the text chatting through a server to transit, the point-to-point audio and video chats.Key words:text chatting; VFW; Video Capture; video transmission; audio recording;audio playing目录论文总页数:24页1 引言 (1)1.1 课题背景 (1)1.2 国内外研究现状 (1)2 理论知识介绍 (1)2.1 VFW简介 (1)2.2 线程的实现方法 (4)3 需求分析 (5)3.1 软硬件环境 (5)3.2 需求分析 (5)4 系统结构 (7)4.1 硬件结构 (7)4.2 软件结构 (7)4.2.1 功能需求 (7)4.2.2 系统功能模块图 (8)4.3 系统各模块流程图 (8)5 系统的详细设计 (10)5.1 文字聊天 (10)5.1.1 TCP套接字的运用 (10)5.1.2 文字聊天实现 (11)5.2 语音视频聊天 (13)5.2.1 UDP套接字的运用 (13)5.2.2 视频的捕获 (14)5.2.3 捕获窗口 (16)5.2.4 视频捕获驱动 (18)5.2.5 语音录制 (18)5.2.6 语音回放 (19)5.2.7 视音频的传输 (20)结论......................................................................................................... 错误!未定义书签。

局域网通信设计报告

局域网通信设计报告

课程设计(论文)局域网通信系统论文作者:指导教师:专业:系(院):答辩日期:目录摘要 (1)一、绪论 (1)1.1 即时通信系统的概念 (1)1.2 UDP协议 (1)1.3 开发背景 (1)1.4 运行环境 (2)1.5程序核心流程图 (2)1.6功能设计 (2)二、主要界面及功能的实现 (4)2.1界面设计 (4)1)主界面 (4)2)添加好友界面 (4)3)更换头像界面 (5)4)搜索界面 (5)5)聊天界面 (5)6)修改备注界面 (6)2.2编码实现 (6)2.2.1 主程序初始化函数 (6)2.2.2监听端口方法 (7)2.2.3 添加好友方法 (8)2.2.4 删除好友 (9)2.2.5修改好友备注 (9)2.2.6修改头像 (9)2.2.7截图功能 (10)2.2.7 聊天界面初始化方法 (10)2.2.8 消息接收并显示 (11)2.2.9 图片发送以及保存方法 (12)三、软件测试 (14)四、结论 (15)致谢 (16)参考文献 (17)摘要即时通讯软件是目前计算机用户进行交流最普遍的方式之一,各种各样的聊天软件也层出不穷;服务提供商也提供了越来越丰富的通讯服务功能。

即时通信中最基本的功能就是通过计算机之间的文本数据的互换的形式实现思想的交流和沟通,它的优点是方便快捷,为人们之间创建了一种新型的、廉价的、快速的、简便的沟通方式。

本系统是基于UDP的局域网聊天工具。

从实现了面向无连接的点对点异步通信,在此基础上应用了多线程技术解决了局域网多用户间的通信问题。

聊天程序以Visual Studio 2008为基本开发环境和C# 语言进行编码设计实验表明该聊天工具能够为局域网内部人员提供一个很好的交流平台,方便了工作上的交流与协同。

本课题开发了一个基于局域网内部的消息通讯平台。

在此平台上可以实现内部用户之间的实时通讯,使用户之间能更及时、更方便有效的沟通信息。

实现了局域网内部电子信息化的交流,提高了工作效率。

局域网的语音通信系统论文

局域网的语音通信系统论文

局域网的语音通信系统论文局域网的语音通信系统是指一种在小范围内完成语音通信的技术,通常是由计算机网络和通讯设备组成。

在现代信息化社会中,局域网的语音通信系统越来越受到人们的重视和关注。

一、系统概述局域网的语音通信系统主要由两部分构成:硬件设备和软件系统。

硬件设备包括计算机、话筒、扬声器和网络交换机等。

软件系统则包括操作系统、语音通信软件和网络通讯软件等。

这种系统可以让各个子网能够通过网络进行语音通信,方便了各个节点之间的交流和协作。

在现代办公场所中,这种系统可以提高办公效率,减少冗余的时间和信息传递不畅的问题,使得各种办公任务能够更加高效的完成。

二、系统特点局域网的语音通信系统具有以下特点:(1)高清音质:通过智能音频编解码技术,实现语音的高保真传输,提高语音通信的质量和清晰度。

(2)多方会议:该系统支持多个节点同时进行语音通话,提高了合作效率,使得团队项目能够更加有效地展开。

(3)兼容性强:该系统支持多种操作系统,并且兼容多种不同的网络设备和通讯协议,使用起来非常灵活和方便。

(4)操作简便:该系统界面简洁清晰,操作容易,用户只需简单地安装软件和设备,在网络上建立通信,便可使用。

(5)安全可靠:局域网的语音通信系统采用密钥认证技术和高效的数据加密技术,保障通讯过程的安全和可靠性,在企业内部通讯等重要场合得到了广泛应用。

三、系统应用局域网的语音通信系统被广泛应用于各种办公场所、企业内部通讯、在线教育、远程医疗和远程会议等方面。

在企业内部通讯方面,使用语音通信系统可以方便员工之间的交流和协作,尤其是在团队项目和业务部门之间的沟通与协调更加便捷。

在在线教育方面,语音通信系统可以使教学环节更加直观、互动化,提高学生们的学习效益。

在远程医疗方面,该系统可实现医生与病人的远距离会诊、诊断,缓解医疗资源分布不均、医疗成本高昂等问题。

在远程会议方面,语音通信系统方便了与距离较远的合作伙伴的沟通,减少了商务差旅带来的诸多不便。

基于局域网的文件传输系统的设计与实现毕业设计(论文)

基于局域网的文件传输系统的设计与实现毕业设计(论文)

本科毕业设计(论文)题目:基于局域网的文件传输系统的设计与实现基于局域网的文件传输系统的设计与实现摘要在这个信息化时代,计算机网络技术的迅猛发展影响了几乎包括政治、文化、生活、经济在内的每一个角落,推动了人类社会向信息化社会的逐步转变;同时我们也应该清醒地认识到文件传输的问题是计算机网络发展过程中的一个不容忽视的问题。

在如今拥塞的网络上,各种数据在争夺着网络资源,如何使传输的文件更加可靠的到达目的地,同时如何友好的解决文件分类分组高效传输等问题都是需要有待提高和完善的地方。

很多情况下,人们的日常工作需要借助文件传输来完成。

但大多数文件传输功能都需要借助移动磁盘等硬件设备或Internet上的服务器才能实现。

这就给那些具有大规模内部网络的用户造成了许多问题,如浪费资金、浪费网络资源、病毒入侵、降低了工作效率等。

为了方便局域网内主机的资源共享,需要开发一个基于局域网的文件传输工具,在内部网络中实现文件交换。

本文件传输系统的设计选用VC++6.0为开发工具,以C/S模式通过建立Socket连接后实现局域网快速,准确,安全的点对点文件传输功能。

本系统能够促进局域网内用户之间的文件资源共享,满足主机之间信息交流,确保文件传输安全性,有效地提高工作效率。

关键字:套接字;网络编程;C/S模式;TCP/IPDesign and implementation of file transfer system based onlocal area networkAbstractIn this information era, the rapid development of computer network technology has affected every corner almost, including politics, culture, life, economic, and promote the gradual transformation of human society to information society; We should also clearly recognize that the file transfer problem is a problem not to be ignored in the development of computer networks. In today's congested network, various data competing for network resources, how to make transmission more reliable, and how to resolve the efficient problem is need to be improved and perfected. In many cases, people's daily work is required to use file transfer to complete. But most of the file transfer capabilities require the removable disks and other hardware devices or servers on the Internet. This caused many problems for those large-scale internal network users, such as a waste of money, a waste of network resources, virus attacks, reduced work efficiency. In order to facilitate the sharing of resources of the host in the LAN, We need to develop a LAN-based file transfer tool for document exchanged in the internal network.The file transfer system design uses VC++6.0 as development tools. By creating a C/S Socket connection to realize fast, accurate, secure peer-to-peer file transfer capabilities. The system can promote the sharing of files between the LAN user to meet the exchange of information between the host and ensure the file transfer security, and effectively improve work efficiency.Key Words:Socket;Network programming;C/S mode;TCP/IP目录摘要 (I)ABSTRACT (II)1 绪论 (1)1.1前言 (1)1.2国内外研究现状 (1)1.3课题研究的意义 (1)1.4本文主要研究内容 (2)2 系统需求分析 (3)2.1现行业务系统描述 (3)2.2现行系统主要存在的问题分析 (3)2.3提出解决方案 (3)3 TCP/IP协议 (5)3.1开放式系统互连参考模型 (5)3.2TCP/IP技术 (5)3.2.1 TCP/IP体系结构 (6)3.2.2 IP协议 (7)3.2.3 TCP协议TCP/IP特点 (7)3.2.4 TCP/IP传送文件机制 (8)4 SOCKET网络程序设计技术 (10)4.1S OCKET编程 (10)4.1.1 Winsock简介 (10)4.1.2 Winsock通信机制 (11)4.1.3 Winsock编程模型 (13)4.2主要函数介绍 (15)4.3C/S构架 (20)4.3.1 C/S构架软件的优势与劣势 (20)5 软件开发 (22)5.1程序功能分析 (22)5.2系统总体架构 (22)5.3设计流程图 (22)5.4系统功能模块设计 (25)5.4.1软件设计 (25)5.4.2服务器模块 (25)5.4.3客户端模块 (28)6 软件实现与测试 (30)7 总结 (34)致谢 (35)参考文献 (36)毕业设计(论文)知识产权声明 (1)毕业设计(论文)独创性声明 (9)1 绪论1.1前言当今世界科学技术飞速发展,尤其以计算机通信网络为代表的互联网技术更是日新月异,令人眼花燎乱,目不睱接。

毕业论文局域网聊天软件的设计与实现原理

毕业论文局域网聊天软件的设计与实现原理

摘要在网络越来越发达的今天,人们对网络的依赖越来越多,越来越离不开网络,由此而产生的聊天工具越来越多,例如,国外的ICQ、国内腾讯公司开发的OICQ。

基于Java网络编程的强大功能,本次毕业设计使用Java编写一个聊天系统。

一般来说,聊天工具大多数由客户端程序和服务器程序外加服务器端用于存放客户数据的数据库组成,本系统采用客户机/服务器架构模式通过Java提供的Socket类来连接客户机和服务器并使客户机和服务器之间相互通信,由于聊天是多点对多点的而Java提供的多线程功能用多线程可完成多点对多点的聊天,数据库管理系统用SQL Server2000完成并通过JDBC-ODBC桥访问数据库。

本系统建立在JAVA平台上,系统的设计使用了面向对象技术和面向对象的设计原则。

系统采用C/S结构,客户端与客户端以及客户端与服务器端之间通过Socket传送消息。

使用JAVA语言编写,开发工具采用Eclipse。

服务器端设计与实现过程中,采用了多线程技术,可以在单个程序当中同时运行多个不同的线程,执行不同的任务。

大大增强了程序对服务器资源的利用。

聊天系统完成后将可进行多人对多人的聊天,对好友进行添加、删除,对新用户的注册,发送消息、接受消息等等功能。

关键字:多线程;客户机/服务器;JAVA ; Socket ; Eclipse ; TCP/IPAbstractas the network become more and more developed, people become more and more lean to the network, and can not leave with out it. This caused the chat materials become more numerous, as the overseas ICQ system, the OICQ system that invented by Tencent Co., and so on. So we create a network chat medium just like the QQ.Java network programming based on the power, the use of Java designed to prepare graduates a chat system.In general, the majority of the chat tool for client and server program in addition to server-side storage of customer data for the database,the system uses a client / server architecture model the adoption of Java provided Socket class connect client and server and between the client and server communicate with each other, as the chat is to provide point-to-multipoint and multi-threaded Java function to be completed by using multi-threaded chat and more point-to-multipoint, database management system with SQL Server2000 the completion and adoption of JDBC-ODBC Bridge access the database.The system built on the JAVA platform, the system design using object-oriented technology and object-oriented design principles. System uses the C / S structure, client and client-side and server-side client and send messages through Socket. The use of JAVA language, development tools using Eclipse. Design and Implementation of server-side process, the use of multi-threading technology, which can process in a single run at the same time a number of different threads, the implementation of different tasks. Procedures greatly enhanced the use of server resources.Chat system will allow people to complete chat to more friends,and the system can add, delete somebody,can deal with new user registration, send messages, receive messages and so on.Keywords : Multithreading ;Client/Server ;JAVA ;Socket ;Eclipse ;TCP/IP目录1 绪论 (5)1.1国内外聊天系统的研究现状 (5)1.2J AVA语言 (6)1.2.1 Java的发展历史 (6)1.2.2 Java的特点 (7)1.2.3 Java与Internet (7)1.3S OCKET编程 (8)1.3.1 关于TCP/IP协议 (8)1.3.2 服务器和客户机 (9)1.4本文内容安排 (9)2 需求分析 (10)2.1可行性研究 (10)2.1.1 可行性分析 (10)2.1.2系统功能需求 (10)2.1.3 系统性能需求 (11)2.1.4 系统运行需求 (11)2.2数据流图 (11)2.2.1 顶层数据流图 (11)2.2.2 一层数据流图 (12)2.2.3 二层数据流图 (13)3 概要设计 (14)3.1系统实现原理 (14)3.2系统实现层次图: (15)3.3各模块详细功能 (15)3.3.1服务器端结构 (15)3.3.2 客户端结构 (16)4 详细设计 (17)4.1系统流程图 (17)4.1.1 系统总体流程图 (17)4.1.2 系统客户端流程图 (18)4.2编写服务器端程序 (18)4.2.1 问题陈述 (18)4.2.2 解决方案 (19)4.3客户端程序编写 (23)4.3.1 (23)4.3.2 用户登录 (23)4.3.3 聊天室 (24)参考文献 (30)致谢 (31)1 绪论1.1国内外聊天系统的研究现状目前国内外做聊天系统的公司很多,产品也琳琅满目,国内有诸如腾讯QQ、新浪UC、网易泡泡等,国外有著名的MSN(新版改名为Live Messenger)以及跨平台Gaim等。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

基于局域网的通讯系统的设计摘要随着计算机科学和Internet 的飞速发展, 网上聊天已成为人们相互交流的一种方式, 与E-mail、电话相比, 聊天服务更具有实时性和有效性。

本论文提出一个运行于VC平台上的局域网聊天软件的解决方案。

该聊天软件包括服务器端和客户端两个模块,客户端通过服务器端进行通信。

服务器端模块主要实现了服务器的配置和数据的传递;客户端模块主要实现了用户注册、登录、文字聊天等功能。

该软件采用异步套接字的非阻塞模式,并实现对象的序列化和MFC文件对象实现数据的保存。

该软件能够帮助企业在局域网内搭建起自己的聊天系统,避免企业内部员工使用类似QQ等软件泄露内部信息,但是该软件只实现了聊天的基本功能,还有很多不足之处需要改进。

关键字:局域网、聊天系统LAN-based communication system design chatAbstractAlong 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.This thesis proposes a solution of a LAN chatting software based on C++ language, which is operated on the VC platform. This chatting software includes two modules: the server and the client, which can communicate with each other. The server module mainly completes the sever device’s configuration. The client module mainly completes the users’ login, registration, instant messaging and so on. The software used model of non-blocking asynchronous socket , And to achieve the object and MFC series documents the preservation of the object data.This software can help the company to build their own chatting system in the local area network, and it also can avoid the staff of the company disclosing the insider information by using the other software such as QQ, but this software has only completed the basic function as a chatting system, so it need much more improvement.Key words:LAN 、Chat目录Abstract ------------------------------------------------------------------------------------------------- II 1 概述 ------------------------------------------------------------------------------------------------- 31.1 系统现状 ----------------------------------------------------------------------------------------------- 1 1.2 系统内容与目标 -------------------------------------------------------------------------------------- 2 1.3 系统综述 ----------------------------------------------------------------------------------------------- 2 2系统开发环境和关键技术 --------------------------------------------------------------------- 32.1 开发环境 ----------------------------------------------------------------------------------------------- 3 2.2 关键技术 ----------------------------------------------------------------------------------------------- 32.2.1 .Visual C++和面向对象程序设计------------------------------------------------------------------------- 32.2.2 M F C-------------------------------------------------------------------------------------------------------------- 42.2.3 WINDOWS SOCKETS网络编程接口 --------------------------------------------------------------------------- 42.2.4 WSAAsyncSelect模型开发----------------------------------------------------------------------------------- 52.2.5 TCP/IP协议、TCP协议--------------------------------------------------------------------------------------- 62.2.6 Client/Server结构(客户机/服务器模式) ---------------------------------------------------------- 8 3系统分析与设计 --------------------------------------------------------------------------------- 93.1 系统分析 ----------------------------------------------------------------------------------------------- 93.1.1系统需求 --------------------------------------------------------------------------------------------------------- 93.1.2 需求分析 ------------------------------------------------------------------------------------------------------- 103.2 系统设计 ---------------------------------------------------------------------------------------------- 113.2.1 设计原则 ------------------------------------------------------------------------------------------------------- 113.2.3工作流程 ------------------------------------------------------------------------------------------------------- 123.2.4 功能设计 ------------------------------------------------------------------------------------------------------- 123.2.5 共享数据类设计 ----------------------------------------------------------------------------------------------- 134系统实现------------------------------------------------------------------------------------------ 164.1 服务器端设计实现 --------------------------------------------------------------------------------- 164.1.1 服务器端静态类图------------------------------------------------------------------------------------------- 164.1.2 服务器主要类介绍------------------------------------------------------------------------------------------- 164.1.3 服务器端主要过程介绍------------------------------------------------------------------------------------- 194.2 客户端设计实现 ------------------------------------------------------------------------------------ 254.2.1 客户端静态类图 ---------------------------------------------------------------------------------------------- 254.2.2客户端主要类介绍------------------------------------------------------------------------------------------- 254.2.3客户端主要过程介绍----------------------------------------------------------------------------------------- 27 4.3系统测试---------------------------------------------------------------------------------------------- 324.3.1 测试意义 ------------------------------------------------------------------------------------------ 324.3.2软件测试的目标----------------------------------------------------------------------------------------------- 324.3.2软件测试的方法----------------------------------------------------------------------------------------------- 324.3.3 测试用例 ------------------------------------------------------------------------------------------------------- 33总结与展望-------------------------------------------------------------------------------------------- 34致谢 ------------------------------------------------------------------------------------------------- 371 概述近年来,随着全球信息化进程的不断发展,网络也在飞速发展。

相关文档
最新文档