答辩后20114070107-郭良华-基于java的聊天系统的设计与实现最终版
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
本科生毕业论文(设计)
基于java的聊天系统的设计与实现
姓名郭良华
学号20114070107
专业计算机科学与技术
指导教师师文
2015年5月30日
摘要
随着互联网的发展,即时通讯工具正受到更大用户群体的青睐。即时通讯(Instant Messenger,简称IM)是指一种能够让使用者即时发送和接收互联网消息的实时通讯服务。即时通讯的最大特点在于它的即时性,只需通信双方同时在线,就能像多媒体电话一样,实现文字、档案、声音、影像等信息的互传。在网络环境的支持下,通信双方可以便捷的实现信息交互,而不受物理距离的限制。因此即时通信系统在当今社会中有着非常重要的地位。
本论文详细的论述了即时通讯系统的客户端和服务器端的主要组成模块,研究了各系统模块的实现方式和具体设计方案,重点阐述了各模块的主要功能,并通过模块流程图加以展示。系统采用面向对象和模块化的设计方法,主要运用了网络通信技术、数据库技术、多线程技术等计算机相关技术,实现了文本通信、用户分组等功能,具有较强的通信实时性。该系统基于C/S体系结构和MVC框架,使用Java语言进行开发,实现了多用户的即时通信。设计并实现了用户注册、登录、用户列表、多用户即时聊天等功能。基于Swing开发了较完整的图形用户界面(GUI);通过套接字编程实现了通信功能。在上述技术研究的基础上,本文构建了局域网环境下,面向普通用户的即时通讯系统,该系统能够满足基本的通信需求。同时该系统采用模块化程序设计模式,因此具有较好的系统扩充性。
关键词:即时聊天;socket;局域网;java
Abstract
With the development of the Internet, instant messaging tool is favored by more and more user groups.IM (Instant Messenger, IM) refers to a kind of real-time communication service which allows users to send and receive Internet messages instantly.The biggest characteristic of Instant messaging is its immediacy, just communication online at the same time, both sides can realize to send the information to each other like multimedia phone, such as text, archives, sound and image.With the support of network environment, both communication sides can easily realize the information interaction,which can’t be restricted by physical distance.So instant communication system has a very important position in today's society.
The paper discusses the main modules of the client and server side of the instant communication system detaily,studies the way of realization of each system module and the specific design, expounds the main functions of each module,and displays them by module flow chart.With strong real-time communication,the system adopts object-oriented and modular design method,mainly uses computer technology,such as the network communication technology, database technology and multithreading technology,and has realized the text communication,user group and other functions.The system is based on C/S architecture and MVC framework,uses Java language development,and realizes the multi-user real-time communication.The system designs and implements the user registration, login, the user list, multi-user instant messaging,etc.Based on the Swing,the system developes a complete graphical user interface(GUI).Through socket programming,the system achieves the functions of communication.On the basis of the above technology researches,this paper constructs the instant messaging system,which is designed for ordinary users at the LAN environment and can meet the basic communication requirements.At the same time,adopting the modularized program design patterns,the system has a good system expansion.
Key Words: Instant Chat, Socket, Local Area Network, Java