登录

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

注册

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

找回密码

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

基于java的仿QQ即时聊天程序的设计与实现毕业论文

 2021-05-25 10:05  

摘 要

依托计算机和网络技术的高速发展,即时通讯技术凭借其实时、便捷、廉价等优势,一跃成为最主流的信息通讯手段。加之近年移动互联网技术的火热发展,即时通讯更是炙手可热,吸引着众多企业的眼球,其巨大的商业价值推动了互联网行业的繁荣。

本文首先论述了涉及的相关技术背景,包括java编程、网络通信、数据库、加密等技术和原理;其次按照软件工程思想和模块化方法对软件进行系统分析和设计,最终编程实现整个程序。软件采用C/S和P2P混合架构,基于MVC开发模式,采用java语言编写实现包括即时聊天,文件传输、信息更改功能的系统。系统运用了java多线程技术,基于java swing 实现UI界面,采用socket与数据流的结合完成通信功能,借用SSL协议保证加密安全。

本文旨在运用所学的网络通信知识和java编程技术,分析企业环境的需求,仿照QQ的界面和思想,选择恰当的体系架构,定义合理的软件逻辑,提出一套满足整体需求、包括功能模块划分和数据库设计等在内的完整的解决方案。

关键词: 即时通讯,java语言,多线程,套接字,C/S架构,P2P,加密

Abstract

Relying on the rapid development of computer and network technology, instant communication with real-time, convenient, cheap and other advantages, become the mainstream of information communication. Combined with the recent development of mobile Internet technology, instant communication is more popular then before and has attracted the attention of many companies. its greate commercial value to promote the prosperity of the Internet industry.

This article first discusses the related background technical involved, including Java programming, network communication, database, encryption technology principle; Next, according to the software engineering thought and the method of module,we carry on the system analysis and the design to the software; In the end, the whole program is realized through programming. Software using C/S and P2P hybrid architecture, based on the MVC development model, using java language to achieve the system functions including instant chating, file transferring , information changing and so on. The whole system using java multi threading technology, implementing UI interface based on Java swing, using socket and data stream to realizing the communication, using SSL protocol for ensuring the encryption security.

This paper aims to apply the knowledge of network communications and the Java programming technology, analysis the needs of enterprise environment, imitate the QQ’s UI interface and ideas, choose the proper system architecture,define the reasonable software logic, propose a complete set of solutions of Meet the needs of the whole system, which inlcuding function module division and database design.

Key words: instant messaging, Java, multi thread, socket, C/S architecture,P2P,encryption technology

目录

第一章 前言 1

1.1 即时通信概述 1

1.2 国内外研究现状分析 1

1.3 选题的背景和意义 2

1.4 本文研究内容 3

1.5 论文内容安排 3

第二章 技术背景 5

2.1 开发环境介绍 5

2.1.1 java 5

2.1.2 JDK 6

2.1.3 eclipse 6

2.2 Swing编程 7

2.3 多线程 7

2.4 数据库 8

2.4.1 MySQL 8

2.4.2 JDBC 8

2.4.3 SQL 9

2.5 网络通信 9

2.5.1 TCP和UDP协议 9

2.5.2 Socket 9

2.5.3 java安全套接字扩展 10

2.6 FTP 10

2.7 系统架构 11

2.7.1 C/S架构 11

2.7.2 P2P架构 11

2.7.3 MVC模型 12

第三章 系统分析 13

3.1 系统可行性分析 13

3.1.1 技术可行性 13

3.1.2 经济可行性 13

3.1.3 操作可行性 14

3.2 系统需求分析 14

3.2.1 功能需求分析 14

3.2.2 性能需求分析 15

3.2.3 安全需求 15

第四章 系统设计 17

4.1 系统架构设计 17

4.2 功能模块设计 18

4.2.1 服务器端功能设计 18

4.2.2 客户端功能设计 19

4.3 界面设计 19

4.4 数据库设计 20

第五章 详细设计及实现 21

5.1 服务器端详细设计及实现 21

5.1.1 会话监控界面 21

5.1.2 在线监控界面 22

5.1.3 系统消息界面 23

5.1.4 消息处理模块 23

5.1.5 数据库连接模块 24

5.1.6 通信线程管理模块 25

5.1.7 安全通信模块 26

5.2 客户端详细设计及实现 27

5.2.1 登陆界面 27

5.2.2 注册界面 28

5.2.3 主界面 28

5.2.4 聊天界面 30

5.2.5 消息处理模块 30

5.2.6 更改个人信息模块 31

5.2.7 文件传输模块 32

5.2.8 安全通信模块 32

第六章 系统测试 33

6.1 注册账号测试 33

6.2 登陆测试 35

6.3 即时聊天测试 36

第七章 总结和展望 39

7.1 总结 39

7.2 展望 39

参考文献 41

致谢 43

第一章 前言

1.1 即时通信概述

随着计算机和网络技术的高速发展,信息量爆炸式的增长,无论是个人还是企业等组织机构,在获取信息的渠道的便利性、实时性、安全性的需求日益强烈,因此,即时通讯的出现即受到人们的青睐和追捧。

即时通讯,英文缩写为IM(Instant Messaging),它的出现是在互联网得到相当巨大的发展前提下,实现文字、文件、语音、视频等多形式混杂的实时消息传送的过程。自1996年面世以来,即时通讯技术得到了突飞猛进的发展,从简单的文字聊天工具发展成为花样百出的集通信、办公、娱乐于一体的平台。与传统的email相比,即时通讯具有实时、便捷、廉价等优势,且随着近年移动互联网技术的井喷式发展,PC端到移动端的通信更是让即时通信技术的地位难以撼动。

1.2 国内外研究现状分析

即时通讯软件(IM)首先在国外掀起无与伦比的风潮。从1996年第一款IM软件Mirabils公司的ICQ开始,微软先后诞生了轰动世界的1998年MSN和2013年取而代之并超过6.63亿用户注册的Skype。尽管企业级的市场开发耕耘数年,但仍远远尚未达到饱和,根据市场研究机构eMarket 2005年的数据显示,全球企业即时通讯市场规模为2.67亿美元,预计2010年该市场将达到翻两番的增长速度;预计2013年,在跨国企业巨头就职的超过95%的职员将把即时通讯软件作为实时沟通的主要工具。

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

企业微信

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