基于局域网络的即时聊天系统设计与实现

 2024-02-06 10:02

论文总字数:20843字

摘 要

本课题研究的是基于Socket的即时聊天系统,通过Java Swing图形用户界面实现局域网内部人员之间的交流,设计开发了Java即时聊天系统。该系统主要用于学校,企业的内部网络中使用,可以通过网络共享文件存储信息,也可以使用系统内的FTP服务进行文件的上传和下载操作。它仿照了飞秋聊天系统的设计,并实现了即时聊天和文件传输的功能。为用户提供了信息交流和文件传输的功能。本系统采用java封装对象的思想,语言使用java,数据库选用MySQL数据库。分析研究了java图形化界面的控件的使用方法与实现中需求的应用,将我们大学中教程理论实现到代码的工作环境中。同时,将《Java面向对象程序设计》中的知识做了系统的复习。随后对即时聊天系统各个功能模块进行了较详细的说明,给出了具体实现步骤。即时聊天系统主要包括三个模块:好友管理模块、消息管理模块和文件管理模块。用户可以进行添加好友,删除好友,邀请好友加入;进入时自动添加到好友关系数据库中;用户可以发送并接收消息;可以对传输文件。可以预见的是,即时通信将成为人类社会最重要的通讯工具之一。

关 键 字: java swing 、 udp socket 、 eclipse

Abstract: This research is the instant chat system based on socket, through the Java Swing graphical user interface for communication between LAN internal personnel, design and development of the Java instant messaging system. The system is mainly used for the school, for use in the company"s internal network can through shared network file storage information, can also use the FTP service system for file upload and download operations. It is modeled after the design, chat system, and realize the real-time chat and file transfer function. Provide the information exchange and file transfer function for users. This system uses Java to encapsulate the object, the use of Java language, the database selected MySQL database. Analysis of the java graphical interface of the control method and application demand, our University tutorial theory to the working environment of the code in. At the same time, the "Java" in object-oriented programming knowledge to do a systematic review. The instant messaging system each function module in detail, gives the specific implementation steps. Instant messaging system consists of three modules: friends management module, news management module and document management module. Users can add friends, delete friends, invite your friends to join; entered automatically added to the friend relationship in the database; users can to send and receive messages; documents to be transmitted. It is foreseeable, instant communication will become one of the most important communication tool for human society.

Keywords: java swing 、 udp socket 、eclipse

目录

1 前言 4

2 开发环境及相关知识简介 4

2.1 课程设计目的 4

2.2 局域网简介 4

2.3 操作系统:Windows 7 5

2.4 Eclipse简介 5

2.5 MySQL简介 6

2.6 Socket简介 6

2.7 TCP/IP和UDP 7

2.8 界面布局Java Swing 简介 8

3 系统需求分析 8

3.1 功能需求分析 8

3.2 系统功能模块 8

3.3 系统功能流程图 9

4 数据库设计 10

4.1 数据库概念结构设计 10

4.2 数据库逻辑结构设计 12

5 系统功能实现 13

5.1 注册模块功能的实现 13

5.2 登陆模块 15

5.3 找回密码模块 18

5.4 删除好友模块 20

5.5 好友聊天模块 21

5.6 文件上传模块 25

5.7 消息查询模块 27

6 系统测试 29

6.1 系统测试的作用 29

6.2 系统测试的方法和测试的结果 29

结论 32

参考文献 33

致谢 34

1 前言

近年来,随着全球信息化进程的不断发展,网络通信的形式也更为多样化。越来越多的企业使用网络来进行工作。在网络上通信,使得信息的传递更为方便快捷,公司运营,协调性能更高效。使得人们摆脱了原来纸质文稿携带的难题,大信息查找的繁琐的状况。

在网络的帮助下,企业得以简化信息的流程,提高信息的交换速度,从而提高工作效率。然而,随着企业规模的扩大,业务量的增加,网络中的应用也越来越多,如网络会议,数据库应用,数据同步,数据备份,公司信息等。这些功能使得网络的信息吞吐,信息处理的能力的要求也越来越高。尽管企业选用的是局域网,但在设计之初,仍未考虑某些新状况的出现,使得网络不堪重负,网络信息阻塞,此时,提升效率成为企业发展的瓶颈。

为了解决上述的状况,人们提出了许多的方法,如提升带宽,增加服务器等。然而从企业的成本考虑,无论是单纯的提升网络带宽或是增加服务器的吞吐量都不能从根本上解决企业局域网中网络资源紧张的问题,对旧的局域网大规模的改造硬件反而会增加企业的负担。

剩余内容已隐藏,请支付后下载全文,论文总字数:20843字

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

该课题毕业论文、开题报告、外文翻译、程序设计、图纸设计等资料可联系客服协助查找;