登录

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

注册

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

找回密码

  • 获取手机验证码60
  • 找回
毕业论文网 > 毕业论文 > 电子信息类 > 电子信息工程 > 正文

基于Linux系统的区域交流室毕业论文

 2022-05-12 09:05  

论文总字数:11327字

摘 要

随着现代信息技术的发展,局域网日益成为一项事业的发展方向。利用Linux和SQLite数据库开发的网上聊天室也开始出现在生活中。网络聊天室利用了Linux的命令行功能实现了B/S交互。网络聊天室的功能包括与单个用户私聊、与多个用户群聊以及给单个用户传输文件。网络聊天室共有两个模块:Server和Client。Server模块运行在服务器上,通过多线程的机制与用户进行一对一的服务。Client模块运行在用户的PC(个人计算机)上,通过与服务器的连接完成和其他人的交流。Server模块中的用户信息表里拥有管理员用户的账号和密码信息。当Client用户通过管理员用户的账号和密码登录聊天室时,此用户可以对聊天室中的其他用户进行管理操作。聊天室实现了在同一网段内的交流,可以在公司、宿舍等小型网络内使用,但是无法再Internet大型网络中使用。

关键词:SQLite 聊天室 多线程

Regional Chat room based on Linux

ABSTRACT

With the development of modern information technology, network has become the development direction of a cause. The online chat room using Linux and SQLite database began to appear in our lives. The network chat room uses the Linux command-line functions to achieve the B/S interaction. The functions of the network chat room include the personal chat, group chat and transferring files to a single user. The network chat room consists of two modules: Server and Client. The Server module running on the server, achieves one on one service with users through the multi thread mechanism. The Client module runs in the user's PC(personal computer), connecting with the server in order to chat with others. The user information inside the Server module has the user's account number and password information. When the client user through the administrator user account and password to log in the chat room, the user can manage other users in the chat room. Chat room to achieve the exchange in the same segment, it can be used within the company, dormitories and other small network, but no longer for a large network of Internet.

Key words: SQLite; Chat-room; Multi thread

目 录

摘 要 I

ABSTRACT II

第一章 引言 1

1.1 课题背景 1

1.1.1 聊天室系统的现状 1

1.1.2 聊天室需要实现的功能 1

1.2 Linux相关技术介绍 1

1.2.1 Linux的优势 1

1.2.2 Linux多线程技术 2

1.2.3 Linux系统的TCP/IP技术 2

1.2.4 Linux系统的socket编程接口 2

1.2.5 SQLite访库技术介绍 3

第二章 系统分析 5

2.1 系统的可行性研究 5

2.2 系统需求分析 6

2.2.1 系统设计目标分析 6

2.3 用户模型的介绍 6

2.4 系统功能模块介绍 7

2.4.1 登录模块 7

2.4.2 主界面模块 7

第三章 数据库设计 9

3.1 数据库的需求分析 9

3.2 后台数据库的配置 9

第四章 系统设计与实现 11

4.1 系统工作原理介绍 11

4.2. 系统的实现算法 12

4.2.1 用户信息初始化算法 12

4.2.2 用户状态转换算法 13

4.2.3 聊天信息收发显示的算法 14

4.2.4 文件收发的算法 15

第五章 总结 17

5.1主要技术难点与解决方案 17

5.2 系统测试说明 17

5.2.1 登录界面 17

5.2.2 主界面 19

5.3 总结陈述 28

参考文献 30

第一章 引言

1.1 课题背景

随着Internet的普及,各种各样的软件被开发出来。Linux也因为其完全免费和多平台的特性,被广大的开发者使用来进行开发。在Linux下,Socket套接字和多线程并发执行已经发展地很成熟。

1.1.1 聊天室系统的现状

聊天室是一种达到方便快捷沟通目的的网络程序,在网络中几乎每个人都会使用网上聊天室来进行远距离的沟通,它是许多上网用户的重要活动之一。

1.1.2 聊天室需要实现的功能

聊天室是为了满足用户和别人交流沟通的需求而被开发出来的。其中服务器可以动态的保存用户的信息,而客户端存在于用户界面为用户提供交流服务。聊天室系统应该支持群体交流、一对一交流和传输文件,应该有以下功能。

(1)可以查看在线用户;

(2)拥有管理员功能,实现在线管理和监察;

(3) 在聊天系统内含多个聊天选择,私聊和群聊无障碍。

这些功能为每个用户都提供了专属于自己的聊天空间。

1.2 Linux相关技术介绍

1.2.1 Linux的优势

Linux是一个能运行多线程的操作系统。它可以在同一进程下运行多个线程,这就保障了服务器可以对客户端进行一对一的服务。

请支付后下载全文,论文总字数:11327字

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

企业微信

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