随着计算机网络的迅速发展,人类的日常生活发生了巨大的变化。如今的人们愈来愈趋向于通过网络来交流和传递信息。而聊天系统是人们使用最多的沟通介质。在这个软件平台上,很多认识或不认识的人们彼此之间能够随意的进行相互交流。QQ是所有聊天系统中使用人数最多的,本次毕业设计我将采用Java编写一个类似QQ的聊天系统。本系统是由客户端程序和服务器程序外加服务器端用于存放客户数据的数据库三大部分组成,采用的是C/S结构,客户端与服务器端之间是通过TCP传送消息的,客户端与客户端两者之间的群聊和传递文件采用的是TCP传递,而客户端与客户端之间的私聊则采用UDP传递消息。
本次网页版网络聊天室由用户注册、用户登录、聊天室的选择、主聊天室以及相应修改、帮助功能组成。使用Java编程语言集合JSP、SSH、Servlet技术完成系统的整体设计,以MyEclipse为平台,Tomcat为服务器。
关键字:网页聊天;网络聊天;聊天室;Java;SSH
With the rapid development of computer network,great changes have taken place in human daily life. Nowadays,people tend to communicate and transmit information through the network. And chat system is the communication medium that people use most. On this software platform,many people who know or do not know can communicate with each other at will. QQ is the most used of all chat systems,this graduation project I will use Java to write a similar QQ chat system. C is used in this system,which consists of three parts: client program and server program plus server-side database for storing customer data The S structure,between the client and the server is through the TCP transmission of messages,between the client and the client group chat and transfer files using TCP transmission,while the client and client private chat using UDP transmission of messages.
This web version of the network chat room by user registration,user login,chat room selection,the main chat room and the corresponding modification,help function composition. Using Java programming language collection JSP、SSH、Servlet technology to complete the overall design of the system,MyEclipse as the platform,Tomcat as the server.
Keywords: web chat;web chat;chat room;Java;SSH
目 录