毕业设计论文基于JAVA聊天室的设计与实现

上传人:新** 文档编号:504386454 上传时间:2022-08-22 格式:DOC 页数:54 大小:547.53KB
返回 下载 相关 举报
毕业设计论文基于JAVA聊天室的设计与实现_第1页
第1页 / 共54页
毕业设计论文基于JAVA聊天室的设计与实现_第2页
第2页 / 共54页
毕业设计论文基于JAVA聊天室的设计与实现_第3页
第3页 / 共54页
毕业设计论文基于JAVA聊天室的设计与实现_第4页
第4页 / 共54页
毕业设计论文基于JAVA聊天室的设计与实现_第5页
第5页 / 共54页
点击查看更多>>
资源描述

《毕业设计论文基于JAVA聊天室的设计与实现》由会员分享,可在线阅读,更多相关《毕业设计论文基于JAVA聊天室的设计与实现(54页珍藏版)》请在金锄头文库上搜索。

1、35T论文分类号: TP 学校代码: 13681 毕业设计说明书(论文)题目: 基于JAVA聊天室的设计与实现 学生姓名: 学 号: 系 部: 专业班级: 指导教师: 二一一年七月IIIBased on the Java Chat Room Design and ImplementationABSTRACTThe rapid development of computer network technology, so that people can choose to communicate more and more the traditional means of communicatio

2、n in the velocity and reliability have been difficult to meet the needs of the people, the instant communication system has become one of the new favorites is an indispensable part. Instant communication refers to the release of information and information receiver almost at the same time to transfe

3、r requirements, a small delay system tools. Such as the commonly used QQ tools, web, MSN communication system tools.The system includes the development of a network chat server program and a network chat client program in two aspects. The former through the Socket establish a server, server can read

4、, forwarded from client information, and can refresh the list of users. The latter by establish a connection with the server, to client and client information exchange. Which uses a local area network communication mechanism, through direct Thread class inheritance to create multiple threads. Develo

5、pment of the computer network programming to the basic knowledge, such as the TCP / IP protocol, client / server mode ( Client / Server mode), network programming design method. Network programming in the information read, send, is the use of flow to achieve information exchange, which is introduced

6、 to implement a systematic analysis of information flow, including some basic software engineering methods. Through the analysis of these cases, the LAN chat tools using Eclipse as the basic development environment and Java language preparation, first in a short period of time can build up the syste

7、m application prototype, then, for the initial prototype system, revises and the improvement unceasingly, at the same time, multi-threading, task design, developed a stable performance, fully functional the server.The complete implementation of the function of the system. Through this graduation des

8、ign can be learned about the application and implementation of object-oriented methods, how to use the Eclipse integrated development environment to create and development projects, thus the complete realization of the function of the system.KEY WORDS:朗读显示对应的拉丁字符的拼音KEYKEJava chat room ,application p

9、rogram ,development environment基于Java聊天室的设计与实现摘 要计算机网络技术的快速发展,使人们可选择的交流方式越来越多,传统的通信方式在速度和可靠性方面已经很难满足人们的需要,即时通信系统已成为人们的新宠也是人们生活中不可或缺的一部分。即时通信即指信息的发布者与信息的接收者几乎同时达到传送要求,延迟很小的系统工具。如常用的QQ工具,飞信,MSN等通讯系统工具。该系统开发主要包括一个网络聊天服务器程序和一个网络聊天客户程序两个方面。前者通过Socket套接字建立服务器,服务器能读取、转发客户端发来信息,并能刷新用户列表。后者通过与服务器建立连接,来进行客户端与

10、客户端的信息交流。其中用到了局域网通信机制的原理,通过直接继承Thread类来建立多线程。开发中利用了计算机网络编程的基本理论知识,如TCP/IP协议、客户端/服务器端模式(Client/Server模式)、网络编程的设计方法等。在网络编程中对信息的读取、发送,是利用流来实现信息的交换,其中介绍了对实现一个系统的信息流的分析,包含了一些基本的软件工程的方法。经过分析这些情况,该局域网聊天工具采用Eclipse为基本开发环境和Java语言进行编写,首先可在短时间内建立系统应用原型,然后,对初始原型系统进行不断修正和改进,同时,采用多线程、多任务的设计思想,开发出性能稳定,功能全面的服务器。完整的

11、实现系统的功能。通过本次毕业设计可以学到如何应用和实现面向对象的各种方法,如何使用Eclipse集成开发环境来创建和开发项目,从而完整的实现整个系统的功能。本系统结构设计合理,功能齐全,采用模块化设计、操作简单,具有良好的人机界面和灵活的系统可维护性;可以实现简单的功能如注册、登陆、查找好友、聊天等功能。并且服务端实现配置文件设置、用户管理、日志显示等功能。关键词:聊天室,应用程序,开发环境目 录1引 言11.1即时通讯技术概述11.2目的和意义22项目开发工具和技术选择32.1开发工具32.1.1Java简介32.1.2 MyEclipse6.0 开发工具32.2技术选择42.2.1 C/S

12、结构42.2.2 Java Socket技术43需求分析63.1项目概述63.1.1产品描述63.1.2产品功能73.2功能需求73.2.1用户注册73.2.2用户登入83.2.3一对一聊天83.2.4发送表情93.2.5用户退出93.3质量性能需求94概要设计114.1系统的代码结构114.2主程序类的设计(MainWin类)114.3多线程的设计114.4服务器端的设计 (Server类)124.5消息通信的设计125系统的实现145.1主程序类的实现145.2多线程的实现145.3服务器连接的实现15III5.4消息通信的实现156详细设计176.1客户端注册176.1.1功能描述176

13、.1.2综合设计176.2登入196.2.1功能描述196.2.2综合设计206.3聊天226.3.1功能描述236.3.2综合设计236.4发送系统消息246.4.1功能描述246.4.2综合设计246.5功能逻辑实现246.5.1逻辑功能描述246.5.2综合设计257系统测试267.1测试举例267.1.1测试程序登录界面267.1.2测试程序主界面267.1.3测试程序退出267.2测试项目267.2.1单元测试277.2.2组合测试277.2.3确认测试277.2.4系统测试277.2.5用户验收测试28结 论29致 谢30参考文献31毕业设计说明书(论文)缩写稿31The Abbr

14、eviation Version of the Thesis of Undergraduates3939基于JAVA聊天室的设计与开发1引 言1.1即时通讯技术概述最初接触的即时通讯(Instant Messenger,简称IM)即为聊天室。老牌的ICQ、国内非常受大众欢迎的腾讯QQ以及微软开发的MSN, Messenger都是我们十分关注的焦点。通过这些即时通讯工具我们可以在网上迅速的找到朋友或者工作伙伴,进行实时交流和互传信息。经过这些年的研究发展,不少IM软件还集成了数据交换、语音以及视频聊天、网络会议、电子邮件等功能。 IM技术全称Instant Messaging,中文翻译“即时通讯

15、”,它是一种使人们能在网上识别在线用户并与互联网上的年轻中国实时交换消息的技术,是电子邮件发明以来迅速崛起的在线通讯方式。IM的出现和互联网有着密不可分的关系,IM完全是基于TCP/IP网络协议族来实现,而TCP/IP协议族则是整个互联网得以实现的技术基础。最早出现即时通讯协议是IRC(Internet Relay Chat),但是可惜的是它仅能单纯的使用文字、符号的方式通过互联网进行交谈和沟通。随着互连网变得高度发达,即时通讯也变得远不仅仅是聊天这么简单,自从1996年第一个IM产品ICQ发明后,IM的技术和功能也开始基本成型,语音、视频、文件共享、短信发送等高级信息交换功能都可以在IM工具上实现,于是功能强大的IM软件便足以搭建一个完整的通信交流平台。目前即时通讯、Twitter受宠电子邮件过气最具代表性的几款的IM通讯软件有MSN、Google Talk、Yahoo、Messen

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 医学/心理学 > 基础医学

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号