Linux下基于Qt4的跨平台聊天系统设计

龙源期刊网 https://www.360docs.net/doc/af16787671.html,

Linux下基于Qt4的跨平台聊天系统设计

作者:吴捷杜庆平

来源:《电脑知识与技术》2014年第15期

摘要:在对当前聊天系统研究和分析的基础上,针对企业的实际需求,设计和开发了一种基于Qt4的跨平台聊天系统,该软件能够在局域网内部实现消息的即时传递。详细描述了系统的基本框架以及运行流程,重点讲述了利用UDP 实现高效可靠传输的基本原理和实现方法。软件采用典型的C/S(服务器/客户端)架构,用Socket编程设计网络通讯。运行结果表明,

该系统工作情况良好。

关键词:Qt4;跨平台;UDP;Socket编程

中图分类号:TP311 文献标识码:A 文章编号:1009-3044(2014)15-3535-03

An Implementation of Cross-platform Chat Room Application Based on QT4 in LINUX

WU Jie, DU Qing-ping

(School of Information and Engineering, Taizhou Polytechnic College,Taizhou 225300,China )

Abstract: On the basis of research and analysis on existing chat system, and according to the requirements of enterprise, the developer designs and develops a system of cross-platform chat room which is based on Qt4. This software can realize the real-time delivery of messages on the LAN. This paper introduces the basic framework of this software and operation process, focusing on the basic principle and the implement method to achieve efficient and reliable transmission using UDP. The software uses typical C/S (client / server) architecture, socket programming of network communication. The results show that the system runs well.

Key words: Qt4; cross-platform; UDP; Socket programming

科学技术日新月异,全球信息化进程飞速发展,计算机和网络已经成为这个时代的“信息基础设施”。对企业而言,借助于网络,可以简化信息流程,提高信息交换的速度,从而提高工作效率。在企业内部,员工之间的信息交互是非常频繁的,在交互过程中,避免企业内部机密通过Internet泄露到外部是每个企业管理者需要重点考虑的问题。为了解决上述问题,人们提出了开发局域网聊天软件的构想,通过局域网聊天软件,企业员工可以进行即时消息传递,召开网络会议,发送内部文件等,在进行信息交互的同时又保护了企业内部信息的安全性。

聊天系统的实现有多种方式,其中比较流行的一种是基于Socket的集中式聊天系统[1]。这种聊天系统一般采用C/S(服务器/客户端)架构,其中服务器端实现与客户端的连接,接收

相关文档
最新文档