登录

  • 登录
  • 忘记密码?点击找回

注册

  • 获取手机验证码 60
  • 注册

找回密码

  • 获取手机验证码60
  • 找回
毕业论文网 > 毕业论文 > 计算机类 > 计算机科学与技术 > 正文

基于QT框架的聊天通信系统的设计与实现

 2022-11-27 02:11  

论文总字数:31192字

摘 要

如今,随着互联网的飞速发展,人们的生产生活中少不了一种沟通的工具,不再像传统的原始通信一样通过书信或找人传话,再者在智能手机还没出现之前也只能通过发短信的方式,但这样产生的费用却是有些昂贵等等。而网上聊天工具的出现极大的改变了这个现状,比如现在的QQ、微信等聊天软件的出现,都是顺应了时代的发展而衍生出来的产物。而人们只需要通过这样的一个聊天系统就能直接给别人发信息甚至是视频,非常的快捷方便,真正地做到足不出户就能“千里传音”了。在当今的社会背景下,聊天工具的出现极大的方便的人与人之间的沟通交流,以此人们就可以花费更多的精力时间在有效的工作上,而不是在聊天通信上浪费太多时间,这样不但可以提高工作效率,还能提高整个社会的生产能力。因此,针对这个问题,本毕业设计便设计了这样一款聊天通信系统,以此来解决人们在聊天通信上的困扰。

本文完成过程中,分析了现如今局域网聊天软件在网络上的未来发展以及参考了一些其他聊天软件的设计,才完成了本文的局域网通信系统的设计与实现。系统简要来说主要是设计客户端和服务器(C/S模式)这2部分,其他一些部分基本都是围绕这2部分进行设计与开发,还有几个通信的重点是socket套接字通信以及传输协议TCP。通过这样的一个思路,然后在功能上的一些细节设计,使得本毕设项目更加的人性化。

本毕业设计是基于Qt框架,在设计过程中,对传统的TCP socket传输进行了一定的设计,考虑到聊天系统在后续的功能中会有文件传输的功能,从而设计了在本项目中设计了2套socket协议,一个传输消息,一个传输文件,做到互不干扰,通信顺畅。本项目在完成时,对其进行了大量的测试与修改,基本能实现聊天的功能,同时还有许多细节方面需要优化。局域网聊天工具相信在未来会发展的更好,经过不断的更新换代,功能会更加的完善,安全性也会得到保障。

关键词:局域网聊天;C/S模式;socket套接字;TCP协议;Qt框架

Design and implementation of LAN chat communication system based on QT framework

Abstract

Nowadays, with the rapid development of the Internet, people's production and life is indispensable a communication tool, no longer like the traditional original communication through letters or people to send messages, and before the emergence of smart phones can only be sent by text message, but the cost is a little expensive and so on.The emergence of online chat tools has greatly changed this situation, such as the emergence of QQ, WeChat and other chat software, are in line with the development of The Times and derived products.And people only need to pass such a chat system can directly send messages or even videos to others, very fast and convenient, truly do not leave home can "thousands of miles sound".In today's social background, the chat of the emergence of a great convenience, communication between people, so people can spend more time on the effective work, and not waste too much time in chat communication, such not only can improve the work efficiency, also can improve the production capacity of the whole society.Therefore, in view of this problem, this graduation design will design such a chat communication system, in order to solve people's troubles in the chat communication.

In the process of completion of this paper, the analysis of the current LAN chat software in the future development of the network and reference to some other chat software design, to complete the design and implementation of the LAN communication system.In brief, the system is mainly designed client and server (C/S mode) these two parts, some other parts are basically around the design and development of these two parts, there are several communication focus is Socket communication and transmission protocol TCP.Through such a train of thought, and then in the function of some details of the design, make this project more humanized.

This graduation design is based on the Qt framework, in the design process, the traditional TCP Socket transmission has carried on a certain design, taking into account the chat system in the subsequent function will have the function of file transfer, thus designed in this project designed two sets of Socket protocol, a transmission message, a transmission file,Do not interfere with each other, smooth communication.Upon completion of this project, a large number of tests and modifications have been carried out on it, which basically realizes the function of chatting, and at the same time, many details need to be optimized.LAN chat tools believe that in the future will develop better, after continuous upgrading, the function will be more perfect, security will also be guaranteed.

Keywords: LAN chat, C/S mode, Socket socket, TCP protocol, Qt framework

目 录

摘 要 I

Abstract II

第一章 绪 论 1

1.1 背景与意义 1

1.1.1 研究背景及其意义 1

1.1.2 研究思路及内容 1

1.2 主要工作内容 2

1.3 论文组织结构 2

第二章 聊天通信系统的关键技术 4

2.1 C/S架构体系 4

2.2 C 语言 4

2.3 TCP/IP协议 5

2.4 Socket套接字 5

2.5 局域网安全 6

2.6 本章小结 6

第三章 局域网聊天通信系统的需求分析 7

3.1 局域网聊天通信系统的需求分析 7

3.2 系统需求分析 7

3.2.1 系统功能需求分析 7

3.2.2 系统非功能需求分析 8

3.3 本章小结 9

第四章 系统设计 10

4.1 系统总体设计 10

4.1.1 系统分层结构设计 10

4.1.2 系统功能模块设计 10

4.1.3 系统总体工作流程设计 12

4.2 系统数据库设计 13

4.2.1 数据库需求分析 13

4.3 系统详细设计 16

4.4 核心算法设计 17

4.5 本章小结 18

第五章 系统实现与测试 19

5.1 系统实现工具与环境 19

5.2 核心代码分析 19

5.3 系统主要运行界面 24

5.4 系统测试 31

5.4.1 系统测试环境与工具 31

5.4.2 系统功能测试 31

5.4.3 系统非功能测试 33

5.5 本章小结 33

第六章 总结与展望 34

6.1 总结 34

6.2 展望 34

致 谢 35

参考文献 36

第一章 绪 论

1.1 背景与意义

1.1.1 研究背景及其意义

互联网技术的飞速发展,促进了社会的进步,也同时影响着人们的衣食住行等各个方面,人们越来越离不开网络了。在日常的生活中,聊天通信成为了人们交流交际的一种方法。对比传统的聊天方式,类似发短信,电子邮件等等目前已经很少见到,基本都是在用各种聊天工具。方便、快捷、速度快似乎成了它的代名词,而人们也十分钟爱它。聊天通信系统简单来讲就是点对点、点对多通信,都是通过I/O接口通信,在普通人眼中可能会觉得很高大上,但其实并不是,对于技术人员来说这是一个不是很难的技术。

面对当下网络的不断发展,聊天通信系统的功能和作用也就逐渐的体现了出来,它给人们带来了极大的方便。一个成熟的聊天系统是具备更多的功能,甚至能丰富人们的生活,给枯燥的生活增加一点趣味。从开发上讲,如今的聊天系统跟以前的传统聊天在思想上还是有很大的区别,因为考虑到用户信息安全的问题,目前在数据库以及服务器管理系统这方面的技术也是日渐成熟和进步。C/S结构在应用开发中逐渐占据主导地位,这种体系的聊天系统可以充分的发挥网络的作用和服务器的管理,同时保障数据库安全,可以满足用户对通信系统的各种需求。

剩余内容已隐藏,请支付后下载全文,论文总字数:31192字

您需要先支付 80元 才能查看全部内容!立即支付

企业微信

Copyright © 2010-2022 毕业论文网 站点地图