学海无涯苦作舟!
JQQ即时通讯系统的设计与实现
[摘 要]运用Internet和Java开发技术,采用C/S模式,建立一个基于应
用的即时通讯系统。本系统实现了用户注册,用户登陆,分组管理,好友管理,查询用户,用户即时通讯,查看聊天记录等功能。用户注册是通过系统来添加新的用户;用户登录用来验证用户的信息是否合法;分组管理功能主要是对分组的管理,如添加分组、删除分组等;好友管理功能主要是对好友的管理,如添加好友、删除好友等;查询用户是查询所有已注册的用户以便加为好友进行通讯;用户即时通讯使成为好友的双方可以即时在线交流;查看聊天记录保存了与好友通讯的所有记录。
[关键词]即时通讯系统;C/S模式;TCP;UDP
学海无涯苦作舟!
JQQ instant messaging system design and Implementation
Computer Science and Technology Major
Abstract: The use of Internet and Java development technologies, using C / S mode, a
real-time communication system based on application. The system implements user registration, user login, group administration, friends manage, query user, instant messaging, view the chat history. User registration is through the system to add new users; user login used to authenticate the user's information is legitimate; group management functions mainly for the management of groups, such as adding a group, delete group, etc.; friends management functions mainly for friends management, such as adding friends, remove friends, etc.; query the user is the query to all registered users to add as friends to communicate; users to instant messaging to become friends of the two sides can exchange real-time online; view chat history with a good save Friends of the communication of all records.
Key words: Instant messaging system; C / S mode; TCP; UDP
学海无涯苦作舟!
目 录
1 绪论 .................................................................. 1 1.1 项目背景 ............................................................ 1 1.2 国内外研究现状 ...................................................... 1 1.3 预期目标和经济效益 .................................................. 2 1.4 课题简要介绍 ........................................................ 3 1.5系统创新点 .......................................................... 3 2 需求分析 .............................................................. 3 2.1 功能需求 ............................................................ 3 2.1.1 用户管理 ........................................................ 3
2.1.2 分组管理 ........................................................ 4 2.1.3 好友管理 ........................................................ 4 2.1.4 即时通讯 ........................................................ 5 2.2 通讯模型的特点 ...................................................... 5 2.2.1 适用性 .......................................................... 5 2.2.2 扩展性 .......................................................... 5 2.3 可行性研究 .......................................................... 5 2.3.1 技术可行性分析 .................................................. 5 2.3.2 不确定性分析 .................................................... 6 2.3.3 分析结论 ........................................................ 6 2.4 运行环境 ............................................................ 6 3 概要设计 .............................................................. 6 3.1 框架设计 ............................................................ 6 3.2 拓扑结构 ............................................................ 7 3.3 功能设计 ............................................................ 9 3.2.1 用户注册模块 .................................................... 9
3.2.2 用户登录模块 ................................................... 10 3.2.3分组管理模块 .................................................... 10 3.2.4 好友管理模块 ................................................... 10 3.2.5 查询用户模块 ................................................... 11 3.2.6 即时通讯模块 ................................................... 11 3.2.7 聊天记录模块 ................................................... 12 3.4 设计原则及一般要求 ................................................. 12
学海无涯苦作舟!
4 系统设计 ............................................................. 12 4.1 模块设计 ........................................................... 12 4.2 即时通讯系统关系型数据库的实现 ..................................... 12 4.2.1 数据库分析 ..................................................... 13
4.2.2 数据库概念设计 ................................................. 13 4.2.3 数据库逻辑结构设计 ............................................. 14 5 系统实现 ............................................................. 15 5.1 注册模块 ........................................................... 15 5.2 登录模块 ........................................................... 17 5.3 分组管理模块 ....................................................... 18 5.3.1添加分组 ........................................................ 18 5.3.2删除分组 ........................................................ 20 5.4 好友管理模块 ....................................................... 21 5.4.1 添加好友 ....................................................... 21 5.4.2 删除好友 ....................................................... 23 5.5 查询用户模块 ....................................................... 24 5.6 即时通讯模块 ....................................................... 25 5.7 聊天记录模块 ....................................................... 26 6 测试报告 ............................................................. 28 6.1 测试基本要求 ....................................................... 28 6.1.1 内容检查 ....................................................... 28
6.1.2 易用性测试 ..................................................... 28 6.1.3 功能检查 ....................................................... 28 6.1.4 容错性测试 ..................................................... 28 6.2测试用例方法举例 ................................................... 29 6.2.1 功能测试 ....................................................... 29 6.2.3 性能测试 ....................................................... 29 结论及尚存在的问题 ..................................................... 30 参考文献 ................................................................. 31 致谢 ................................................... 错误!未定义书签。
相关推荐: