本科毕业论文(设计)(XXXX届本科毕业生)题目:多人聊天软件的设计与实现学生姓名:学生学号:学院名称:专业名称:指导教师:年月【摘要】如今社会,处处充满着智慧的结晶,当然这一切的存在离不开计算机网络的发展。
与此同时,在这个以网络主题时代里,网络聊天软件作为一种开销低且方便快捷的通讯软件扮演着重要的角色,成为人们娱乐、聊天的一大热点,例如:YY语音、腾讯QQ、MSN、Google Talk等产品层出不穷,不断融入我们的生活。
为了更好的了解网络通信和实时聊天软件,本文主要阐述了怎样用JAVA设计和开发一个在Windows平台运行的“多人聊天软件”。
该软件可以实现多个用户实时聊天,并且可以对好友进行群聊、私聊等操作。
软件的具体实现流程和功能结构等,在文中我们会通过表格和图片清晰的展现,以便更好的认知。
本课题的实现采用C/S结构、面向对象的设计原理,开发工具为Eclipse,软件系统主要包括客户端程序、服务器端程序和服务器端用于存放客户数据的数据库,通过JAVA提供的Socket/Server.Socket、AWT等类进行数据传输和界面处理,采用了SQL Server2005数据库管理系统。
【关键词】JAVA, Socket, C/S, 数据库Design and Implementation of theMultiplayer chat software【Abstract】Nowadays, our society is filled with crystals of wisdom. Certainly, these existence can’t live without the development of computer network. Meanwh ile, network-chat software play an important role in this era whose topic is network for its low-cost, convenience and speediness, becoming a hotspot in our amusement and chat. Many products such as YY voice, Tencent QQ, MSN, Goole Talk and so on appear constantly, merging into our life continually. In order to know network communications and instant-chat software better, this thesis mostly explain how to design and explore a chat-software of more than two persons by JA V A that operate in a Windows plat. This software can make constant chat of many people come. In this topic, we’ll show its detail courses of realization and function structures, etc, by tables and pictures in order to let it be known better. The realization of this topic uses C/S structures and design principles of facing object. And its exploitation tool is Eclipse. The software includes client- procedure, server- procedure, database used by server for depositing clients’ data. More, it progresses data- transfer and interface- disposal by classes such as Socket/Server.Socket 、AWT and so on provided by JA V A. What’s more, it adopts database management system of SQL Server 2005.【Keywords】JA V A, Socket, C/S, Database目录第一章绪论.......................................................... - 1 -1.1课题的背景.. (1)1.2课题的意义 (1)1.3国内外研究和现状 (1)第二章系统需求分析 .................................................. - 3 -2.1可行性研究 .. (3)2.1.1经济可行性.................................................... - 3 -2.1.2技术可行性.................................................... - 3 -2.1.3运行可行性.................................................... - 3 - 2.2软件功能需求 (3)2.3数据需求分析 (4)2.4性能需求分析 (5)第三章技术介绍...................................................... - 7 -3.1JAVA语言简介 (7)3.1.1 JAVA简介..................................................... - 7 -3.1.2 JAVA特性..................................................... - 7 - 3.2TCP/UDP简介. (8)3.2.TCP协议........................................................ - 8 -3.2.2 UDP协议...................................................... - 8 - 3.3S OCKET原理 (9)3.3.1 Socket具体原理............................................... - 9 -3.3.2 C/S(客户/服务器).......................................... - 10 - 第四章总体设计......................................................- 12 -4.1软件系统原理分析:.. (12)4.2软件系统功能模块 (12)4.3系统模块实现流程: (13)4.3.1 服务器端流程................................................ - 13 -4.3.2 客户端流程.................................................. - 13 -4.3.3 用户注册流程................................................ - 14 -4.3.4 用户登录流程................................................ - 15 -4.3.5 用户退出流程................................................ - 15 -4.3.6 用户聊天流程................................................ - 16 - 第五章客户端功能实现 ................................................- 17 -5.1客户端实现流程如图5-1: (17)5.2用户注册© (17)5.2.1用户注册信息的获取........................................... - 17 -5.2.2注册信息验证................................................. - 18 -5.2.3发送注册信息................................................. - 21 -5.2.4断开与服务器的连接........................................... - 23 - 5.3用户登录 (24)5.3.1用户登录信息................................................. - 24 -5.3.2 用户登录验证................................................ - 25 - 5.4用户聊天 (26)5.4.1发送聊天信息................................................. - 26 -5.4.2 保存聊天记录................................................ - 27 -5.4.3屏蔽聊天信息................................................. - 28 -5.4.4退出聊天系统................................................. - 29 - 第六章服务器端功能实现 ..............................................- 31 -6.1服务器端功能陈述. (31)6.2后台数据库设计 (31)6.3各模块具体实现 (31)6.3.1用户注册处理................................................. - 31 -6.3.2 用户登陆处理................................................ - 33 -6.3.3 用户退出处理................................................ - 34 -6.3.4 用户聊天信息处理............................................ - 35 -6.3.5 服务器踢人处理.............................................. - 36 -6.3.6 服务器公告信息.............................................. - 37 -6.3.7 保存用户日志................................................ - 37 - 第七章总结与展望 ....................................................- 39 -致谢...............................................................- 40 -参考资料.............................................................- 41 -。