基于netbios的聊天工具

上传人:F****n 文档编号:98814390 上传时间:2019-09-14 格式:DOC 页数:77 大小:1,017KB
返回 下载 相关 举报
基于netbios的聊天工具_第1页
第1页 / 共77页
基于netbios的聊天工具_第2页
第2页 / 共77页
基于netbios的聊天工具_第3页
第3页 / 共77页
基于netbios的聊天工具_第4页
第4页 / 共77页
基于netbios的聊天工具_第5页
第5页 / 共77页
点击查看更多>>
资源描述

《基于netbios的聊天工具》由会员分享,可在线阅读,更多相关《基于netbios的聊天工具(77页珍藏版)》请在金锄头文库上搜索。

1、毕毕 业业 设设 计(论文)计(论文) 题题 目目 基于 NETBIOS 的聊天工具 电信学 院院 计算机 系系 01 班班 学学 生生 昂正全 指指导导教教师师 冯博琴 夏秦 设计设计所在所在单单位位 西安交大计算机教学实验中心 二 00 四年六月 1 摘摘 要要 从实际工程应用角度出发,以计算机网络原理为指导,结合当前网络中的 一些常用技术,编程实现基于 NETBIOS 的网络聊天工具,该聊天工具具有聊 天室聊天、广播聊天、二人私聊、语音聊天以及文件传输功能。该论文主 要对当今聊天软件的发展情况、与该聊天软件相关的各种技术以及该聊天 工具的实现做了一个详细的阐述: 1. 作为计算机网络的应

2、用之一聊天工具,受到了用户的普片爱好,它把人 们带进了一个虚拟的网络世界,大大的加深了人们之间的联系。从单一 的文本聊天,到语音聊天以及到现在的图像、视频聊天、及时短信的发 送和在线游戏等功能的开发,已经大大的拓展了聊天工具的概念,它将 会作为未来人们通过因特网相互联系和娱乐的主要平台。 2. 聊天工具的开发主要用到了网络通信技术、语音的采集、压缩、传输、 解压缩以及回放等技术、文件传输技术、windows 的多线程技术以及视 频的采集、压缩解压缩技术等。 3. 该聊天软件基于 NETBIOS 通信,在此基础上,实现点对点聊天、广播聊天、 一对多聊天、语音聊天以及文件的传输。 4. 该聊天工具

3、可以运行于任何支持 NETBIOS 协议的机器上。 5. 该聊天工具用到了多线程的设计,因此线程之间的同步是一大关键之处。 6. 由于系统采用 c/s 结构,客户端与客户端以及客户端与服务器端需要传 2 送一些控制消息,因此系统需要自定义一些消息类型,这是该聊天工具的 又一大关键之处。 7. 语音聊天作为一个独立的模块,镶嵌在点对点的聊天中,语音聊天的关键 之处在于语音的采集,压缩,发送,解压缩,回放上.压缩算法采用 TRUESPEECH,声音的采集主要利用操作系统提供的 WAVEX 函数,这是 windows 较早的一组支持声音的 API。 8. 文件传输作为另一个独立的模块,大大拓展了该聊

4、天工具的功能,其传 输资料利用了原有的 netbios 通信,关键需要同步双方的发送和接受线 程。 关键词关键词 : :网络通信,NETBIOS,聊天,语音聊天,文件传输 3 ABSTRACTABSTRACT In the opinion of practical engineering and guided by computer network principal and taking some common network technicals, I take the software for chatting tool based on NETBIOS into practical.T

5、he softwares functions include chatting-room chat、broadcasted chat、point to point private chat、sound chat and transporting files. This article is main particular expatiate about the development of today chatting software、the technicals of chatting software and the designing, programming of the softw

6、are for chatting tool: 1. The chatting tool ,which is one of the applications of the computer network,becomes the favourite of major users,which brings users into a virtual network world and greatly adds up the relations of users.From former single text chatting,to sound chatting,and the development

7、 of the image,video chatting,transporting note in time and gaming on net,these has greatly adds up the conception of the chatting tools,which will be the main flat roof of userss relating and 4 entertainment by internet. 2. The development of the chatting tool mainly takes advantages of the network

8、communication technicals,gathering、compressing、transporting、decompressing and playing sound information technicals,transporting files technicals,multiple threads technical on windows and gathering、compressing and decompressing video information. 3.The software is based on the communication of the NE

9、TBIOS, implementing the pointing to pointing chatting, broadcasting chatting and the one to many chatting, as well as the sound chatting and the files transporting. 4.This chat tool can run on the any machine, which supports the NETBIOS protocol. 5. The software has a multiple threads, therefore the

10、 synchronization of the threads is a key point. 6. It is need that transport control information between client and client, client and server because of the systems C/S structure. So it is another key point that the software defines many types of information itself. 7. Sound chatting is enchased in

11、the pointing to pointing chatting as an independent module. Gathering, compressing, 5 transporting, decompressing and playing sound information are the key technical of the sound chatting. The arithmetic of compressing adopts the TRUESPEECH. The gathering of sound information mainly takes advantage

12、of the functions of WAVEX, which is a group of quite old APIs of windows that support sound. 8. Transporting files,which is as a independent module,greatly adds up the functions of chatting tool,which transports information by netbios communication.Its key point is synchronizing the sending thread a

13、nd recvieving thread with each other. KEYKEY WORDSWORDS : :network communication, NETBIOS, chatting,sound chatting, file transporting 6 目录目录 第第 1 1 章章绪绪 论论 9 9 1.1项目开发的背景 .9 1.2项目开发的主要内容 10 1.3项目开发的意义 10 1.4项目开发的过程 11 第第 2 2 章章系统分析系统分析 1313 2.1对已有聊天软件的分析 13 2.2系统有关的技术 14 2.2.1网络通信技术.15 2.2.2语音聊天技术.1

14、7 2.2.3文件传输技术.20 2.2.4多线程技术.21 2.3系统方案说明 23 7 2.3.1可选择的其他系统方案.23 2.3.2本系统的方案.24 2.4系统任务概述 26 2.5系统其他要求 27 2.5.1系统性能要求.27 2.5.2系统环境要求.28 第第 3 3 章章系系 统统 设设 计计2929 3.1系统的物理结构 29 3.2系统的软件结构 31 3.3系统数据结构设计 34 3.4系统界面设计 38 第第 4 4 章章系统实现系统实现 4242 4.1功能规定 42 4.2几个主要的线程的程序设计 49 4.2.1聊天室服务器端接收消息线程的程序设计.49 4.2

15、.2二人私聊接收消息线程的程序设计.50 4.2.3文件传送的程序设计.51 4.2.4语音聊天的程序设计.53 4.3源代码分析 54 4.3.1接受语音数据线程源代码分析.54 8 4.3.2新建房间线程源代码分析.57 第第 5 5 章章测试与使用测试与使用 6464 5.1测试目标 64 5.2测试方法 64 5.3测试结果 68 5.4使用简介 69 第第 6 6 章章总总 结结7171 致谢致谢 7575 参考文献参考文献 7676 9 第第 1 1 章章绪绪 论论 1.11.1项目开发的背景项目开发的背景 自从上世纪中叶第一台计算机诞生以来,计算机越来越走进人们的生活 当中,特别

16、是随着计算机网络的发展,把全世界的人们紧密的联系在一起, 大大的扩展了计算机的功能,人们越来越离不开计算机了。如今,作为网 络应用之一的聊天工具,越来越受到人们的欢迎和重视。现在已有的聊天 软件和聊天工具不胜枚举,流行的主要有 QQ,ICQ,MSN Message,NetMeeting,mIRC 和郎码 UC 和各种的网页聊天室等。这些软件特 别是 QQ 升级很快,其功能是越来越来强大,将代表着聊天软件的发展方 向。目前,聊天软件的功能除了最基本的文本聊天,已经可以语音聊天, 图像聊天,视频聊天,文件传输等三维聊天,还发展了短信发送,无线聊 天,在线游戏等功能,可以预见在不久的将来,聊天软件将成为人们通过 10 因特网相互联系和娱乐的主要平台。然而这些软件的一个共同的缺点是采 用了 c/s 的结构模式,如果服务器出现故障,则这个聊天系统都将瘫痪。该 毕业设计课题为基于 netbios 的聊天工具的设计与实现,它是在 netbios 通信 和文本聊天的基础上来实现语音聊天,文件传输。

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 办公文档 > 教学/培训

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号