文档介绍:基于Java的网络聊天工具的开发与实现
中文摘要
当前是信息网络得到飞速发展的时代,尤其是计算机和通信技术的发展和结合,深深的影响着我们的生活、学习和工作方式。其中,网络聊天工具成为人们日常交流的一种重要工具,它成本低,通信速度快,方便信息交流和资料的传递。 meeting、MSN等,这些软件简单易用,深受大众喜欢。
在论文中,首先论述了系统的开发背景,并对所用到的开发工具与关键技术做了简单的介绍。接着对系统的研究意义,研究现状及设计目标进行分析,通过对系统需求和可行性进行分析,确定了系统的功能模块,并画出相应的功能结构图、模块图。其次按系统总体设计的结果,对系统进行结构设计。
本次开发的网络聊天系统是基于开放的Java应用程序设计的,能动态、实时地完成信息的传递,且具有高效的交互性,能更有效地处理客户请求,易于维护和更新。系统采用客户机/服务器的架构模式,由客户端程序和服务器程序外加服务器端用于存放客户数据的数据库组成,使用Java提供的Socket类以及Java的多线程功能,在不同的端口上部署各类服务,可以在单个程序中同时运行多个不同进程,而客户端通过Socket发送信息给服务器,从而实现多点对多点的聊天。
关键词:Java,交互性,Socket类,多线程
ABSTRACT
The rapid development of the works, especially the development and integration puter munication technologies, has deeply affected our lives, learning and work. Among them, the chat tool es an important tool for munication, because of it’s low cost, munication and facilitate information exchange and data transmission. Currently used widely in the chat tool are Tencent QQ, Net meeting, MSN, etc.
In the paper, firstly I discuss the background of the development of the system and simply introduce the development tools and key technologies used. Secondly I analyze the research and design objectives to the significance of the system. Through the system requirements and feasibility analysis, I determine the functional modules of the system and draw the corresponding function block diagram, block diagram. Then according to the results of the overall system design, I design the structural of the system.
The development of the chat system is designed based on open Java application. It can be dynamic, real-time information transfer and efficient interaction so that it can deal more effectively with customer requests, easy to maintain and update. The system will use the client / server architecture model, which includes the client program and server programs plus server-side database used to store customer data. By using the socket class provided by java and java multi-threading capability,we can deploy various services on a dif