毕业论文JAVA聊天室的设计.doc
文本预览下载声明
湖北大学知行学院
本科毕业论文(设计)
题 目 基于JAVA的聊天室设计与实现
计算机与信息工程 系 计算机科学与技术 专业
学 号 0811050002
学生姓名 万小龙
指导教师 尤新华
起讫日期 2011. 10 ~ 2012. 4
工作地点 湖北大学知行学院
目 录
绪论 1
1 课题总体介绍 2
1.1 项目开发的目的 2
1.2 项目开发的意义 2
2 总体设计 3
2.1 应用需求分析 3
2.2 模块具体分析 4
2.2.1 服务器端模块分析 4
2.2.2 客户端模块分析 4
2.2.3 数据库模块分析 4
2.3 聊天室的具体实现 5
2.3.1 登录界面的实现 5
2.3.2注册界面的实现 5
2.3.3 聊天界面的实现 5
2.3.4服务器界面的实现 6
2.3.5 服务器验证登录的实现 6
2.3.6 聊天功能的实现 6
3 聊天室的详细设计 7
3.1 开发环境的配置 7
3.2 开发的过程 7
3.3 聊天室功能的测试 8
结 论 10
参考文献 11
致 谢 12
附 录 13
基于JAVA的聊天室设计与实现
摘 要
随着网络的快速发展,网络俨然已经成为了我们了解世界和关注世界各地新动态的一个主要途径了。因此伴随着网络而必然产生的一些软件也越来越多,而能够实现即时通信的聊天软件也是随之诞生,且深受用户们喜爱。而MSN,ICQ,还有国内的QQ等大型聊天软件也成为了人们网络生活中的一部分。
本文中主要阐述的是Chat room Design with realization based on JAVA
Abstract
With the rapid development of network, the network has become in a major way for us to understand the world . So with the network and inevitable has some software is also more and more, and can realize instant communication chat software is also comes and loved by uses. So MSN, ICQ, QQ and other large chat software has become a part of the people’s life for network.
This article mainly elaborated in the chat room of the design process is Java, and the realization of the function of chat. The front desk of the Java language using C/S architecture to design a chat room, and the back desk, using the database and SQL Server2005 create form to manage customer information. Finally, using the combination of these two tools to complete the design of the chat room.
【Key words】networkChat room Instant communication JAVA
绪论
随着互联网逐步普及,人们的生活和工作也越来越离不开信息网络的支持,而聊天室是人们最常见,最直接的网上交流的方式。
本系统利用Java实现基于C/S模式的聊天程序。聊天室共分为服务器端和客户端两部分,服务器端程序主要负责侦听客户端发来的消息,客户端需登录到服务端才可以实现正常的聊天功能。服务器端的主要实现在特定端口上进行侦听,等待客户端连接;用户可以配置服务端的侦听端口,默认端口为9999;向已经连接到服务端的用户发送系统消息。客户端的主要功能为:连接到已经开启服务的服务端;用户可以配置要连接的端口号;用户可以配置连接后显示的用户的账号;当服务器端开启的话,用户可以随
显示全部