本科毕设论文---局域网聊天软件设计与实现.docVIP

  • 3
  • 0
  • 约5.86万字
  • 约 54页
  • 2016-12-30 发布于辽宁
  • 举报

本科毕设论文---局域网聊天软件设计与实现.doc

局域网聊天软件设计与实现 摘 要 局域网聊天软件是在Linux系统下运行的一个应用程序,程序用c++语言编写。本程序有如下功能:用户列表自动刷新、通过TCP通信协议进行消息收发、MYsql数据库保存用户名与密码。该设计是一个简单的局域网聊天软件,适用于企业内部和实验室使用,不与互联网进行数据交换,具有高速、安全等优势。 本文着重介绍下列内容:对用户上下线消息通知、聊天消息收发等进行数据解析;TCP网络编程,讲述用TCP 创建Client和Server以及收发数据的实现;最后对本设计的具体实现方法和设计实现流程进行讲解以及程序运行分析。 关键词: Linux;TCP;Socket;Mysql数据库;C++ The Design And Implementation of The LAN Chat Software Abstract The LAN chat tool is An application under Linux.The application written by C++ language.This program has the following functions: sending broadcast when login and exit,sending and receiving messages by the TCP communication protocol, using MYsql database to save chat messages. it is most often used to chat in enterprise and laboratory, it is working without data exchange from Internet,so it can transmit data high speed and security. This paper focuses on the following contents: the user online and offline message notification, chat message send and receive data analysis; TCP network programming, here tells the method of using TCP to create client and Server to send and receive data;Finally introduce the design method and implementation process of my graduation design and running the application. Keywords: Linux;TCP/IP;Socket;Mysql database;C++  目录 摘 要 i Abstract ii 1 绪论 1 1.1 课题背景 1 1.2 目的和意义 1 1.3 研究现状 1 2 系统分析 3 2.1 系统理论基础 3 2.1.1 C/S架构 3 2.1.2 TCP 3 2.1.3 Socket 4 2.1.4 QT编程框架 6 2.2 可行性研究 10 2.3 需求分析 11 2.4 系统运行环境 11 3 系统设计 12 3.1 系统结构设计 12 3.2 客户端服务器功能设计 12 3.3 客户端设计 13 3.4 服务器端设计 14 3.5 群聊和私聊模块的设计 16 4 程序描述与详细描述 17 4.1 服务器端验证客户端的登录信息 17 4.1.1 功能及实现 17 4.1.2 技术概要 18 4.2 服务器端处理用户消息 20 4.2.1 功能及实现 20 4.2.2 技术概要 21 4.3 客户端读取服务器发送的数据 23 4.3.1 功能及实现 23 4.3.2 技术概要 25 4.4客户端用户列表的更新 25 5 系统实现 27 5.1 登录模块设计 27 5.2 注册模块设计 28 5.3 群聊模块设计 29 5.4 私聊模块设计 32 结论 34 参考文献 35 致谢 36 1 绪论 1.1 课题背景 随着信息化的广泛普及,网络这种新兴事物在今年来得到前所未有的普及和发展,基于网络的各种应用层出不穷,让各个年龄及阶层的用户体会到了不同的个性化服务,人们的生活方式已经与网络紧密的结合在一起。中小型企业的领导也认识到提高企业信息化的必要性,为了让企业在发展迅速的信息时代生存下

文档评论(0)

1亿VIP精品文档

相关文档