题目:基于 QT 的局域网即时通信系统的设计与实现
学 生 姓 名
学 号 200922080106
班 级 通信
092201H
所属院(系) 电子信息工程系
指 导 教 师
2013 年 5 月 15 日
学院(直属系): 时间:2012 年 12 月 5 日
学 生 姓 名 指 导 教 师
设计(论文)题目 基于 QT 的局域网即时通信系统的设计与实现
主要研
究内容
Qt 局域网通信工具是 Linux 环境下的一款即时通信工具,与
Windows 下的飞鹆传书功能相似。基于 Socket 的局域网通信软件可
以为企业原有的局域网提供一种良好,安全,快速的通信机制。它
的实现无需对企业原有的局域网硬件进行任何改动,具有实现成本
低廉的优点,它的使用能有效地降低局域网通信负荷,提高局域网
的使用效率,可以很好地解决企业内部局域网的各种通信需求。
研究方法
1.针对系统的设计,需要先向相关部门进行调查,详细分析用户
的需求,并根据用户的要求进行分析,分析系统要解决的实际问
题,根据系统需要进而完成该系统的主要功能设计。
2.查阅相关的技术文献,调查目前所采用的技术,分析各种技
术的特点,选择合适的技术来完成设计;同时注意系统的整体效果
设计、功能的完善、界面设计的实用性、美观性等等。
3.最后完成整个系统设计并以书面形式完成毕业设计报告。
主要技术
指 标 ( 或
研 究 目
标)
在 Red Hat Enterprise Linux 5 环境下开发的局域网即时通信系
统。其中网络通信部分采用 TCP/IP 协议。程序采用典型的 C/S(服务
器/客户端)构架。用 Socket 编程设计网络通讯。界面设计部分采用
QT 框架。数据库采用 Linux 系统的 Sqlite3 小型数据库。设计了一个
简易版本的聊天软件,包括登陆、退出、添加好友、消息收/发等功
能。
主要参考
文献
[1]Andrew S.Tanenbaum,David J.Wetherall.Computer Nerwork,fifth
edition[M].清华大学出版社,2012.3.
[2]Anthony Jones and Jim Ohlumd.TCP/IP[M] 详解卷一:协议( 英文
版).机械工业出版社,2003.
[3] 刘俊 翔 .基 于 TCP/IP 的局域网即时 通 信 软件 设 计 [D].吉 林 大
学,2012.
[4]杨沿航.即时通信系统的设研究与实现[D].哈尔滨工程大学,2011.
[5]叶树华.网络编程使用教程(第二版) [M].人民邮电出版社,2010.2.
[6]朱和平.TCP/IP 协议下即时通信系统的研究[M].现代计算机(专业
版),2006.26 页.
说明:一式两份,一份装订入学生毕业设计(论文)内,一份交学院(直属系)。
太原科技大学华科学院毕业设计(论文)
基于 QT 的局域网即时通信系统的设计与实现
摘要
本论文讨论了 Linus 环境下局域网聊天程序的设计思路和设计方法。其中网
络通信部分采用流行的 TCP/IP 协议。程序采用典型的 C/S(服务器/客户端)构架。
用 Socket 编程设计网络通讯。界面设计部分采用 QT 框架。本文最终设计了一
个简易版本的聊天软件,包括登陆、退出、添加好友、消息收/发等功能。
客户机/服务器模型是现代网络通信的重要模型之一。Linux 操作系统依靠
其强大的网络性能和安全体系结构成为了网络通信的主流平台。在局域网中,传
统的计算机间通信方法需要单独架设服务器,客户机间的数据传输需要通过服务
器进行传递,该方法繁琐且不易于使用。根据客户机/服务器模型的基本原理,利
用多线程和套接字技术,设计了在 Linux 环境下不需要服务器支持的局域网通信
系统,给出了系统的框架结构、实现流程与主要代码,实现了系统在局域网内的数
据通信功能。
关键词:Linux,QT,客户机/服务器,多线程
I
太原科技大学华科学院毕业设计(论文)
Design and Implementation of LAN Communication
System Based on QT
Abstract
This article discusses how to design and develop a LAN chatting program in
Linus environment. The network communication part depends on the popular TCP/IP
protocol. Software is based on C/S architecture. Network communication is developed
with Socket. UI is designed with QT frame. The article describes a concise chart
software version, with the function of logging in/out, adding friend to list,
sending/receiving message and so on.
Client/Server model is one of the most important modern network communication
models.Linux OS has become a primary network communication platform for its
great network performance and security system.In a LAN environment,the traditional
method of communication among computers needs to use one server.The data
communication between clients must be through the server.The method is complicated
and inconvenient to be used.Based on the principle of Client/Server model,using
multi-thread and socket technologies.This paper designs a LAN communication
system without the support of a server in Linux environment,provides the
architecture,flow and main code of the system.The system achieves communication
functions in LAN.
Key Words: Linux, QT, client/server, multi-thread
II
- 1
- 2
- 3
前往页