简单的即时通讯工具的设计与开发

发布时间 : 星期六 文章简单的即时通讯工具的设计与开发更新完毕开始阅读

简单的即时通讯工具的设计

与开发

论文作者姓名: 申请学位专业: 申请学位类别: 指导教师姓名(职称): 论文提交日期:

简单的即时通讯工具的设计与开发

摘 要

即时通讯(Instant Messaging)是目前Internet上最为流行的通讯方式,各种各样的即时通讯软件也层出不穷;服务提供商也提供了越来越丰富的通讯服务功能。Java是当前比较流行的开发语言之一,它有着自己的易用特点与性能优势,比如跨平台、安全性、多线程、网络Socket编程、数据流概念等方面,因此通过对开源即时通讯LinuxQQ的研究和分析,基于Java语言和J2EE规范设计了一个即时通讯工具JICQ (Java for I seek you),并对其体系结构、构成模块及系统关键技术进行了分析与设计。在系统设计与建模过程中,使用了UML和面向对象的分析、设计方法,并使用Rose作为建模工具;本系统基于j2se1.5,j2ee1.4,使用Eclipse等作为开发工具,在开发过程中用到了时下流行的重构开发方法,优化了系统的设计。力图使系统具有安全、高效、实用、支持在不同系统平台运行等特点。

关键词:即时通讯;多线程;SOCKET编程;JSP

Design and Development of a Simple Instant

Communication Tool

Abstract

Instant Message is currently the most popular way to communicate on the Internet,so various Instant Messaging software are continuously appearing; Service providers offer more and more communication service nowadays. Java programming language (Java 2 Standard Edition) is one of popular programming languages. With its features of cross-platform, security, multi-threaded capability, Socket Programming, data flow concepts and so on, Java has its own distinctive and functional advantages. Therefore, based on the research and analysis of LinuxQQ, with the Java language and J2EE, this paper designs an instant messenger—JICQ (Java for I seek you), and then analyzes its architecture, modules, as well as its key technologies. During the design and modeling process of instant messenger system, the UML and method of object-oriented analysis and design are used. Furthermore, the modeling tool of Rose is included. Based on the system j2se1.5, j2ee1.4, the Eclipse development tool in the development process, and refactoring development method, the system design is optimized. Due to these factors, the system is safe, efficient and practical in different operating system platforms.

Key words: instant message; multithreaded; socket program; JSP

目 录

论文总页数:30页

1 引言 ............................................................................................................................. 1 1.1 项目开发背景 ........................................................................................................ 1 1.1.1 项目背景 ........................................................................................................ 1 1.1.2 技术背景 ........................................................................................................ 1 1.2 该系统设计的意义 ................................................................................................. 2 2相关理论及基础技术与开发平台 .................................................................................... 2 2.1 即时通讯应用工作原理分析 ................................................................................... 2 2.2所用技术 ................................................................................................................ 3 2.3工具及开发平台 ..................................................................................................... 4 2.4 系统配置要求 ........................................................................................................ 5 3系统体系结构的设计 ..................................................................................................... 5 3.1 需求描述 ............................................................................................................... 5 3.2系统架构设计 ......................................................................................................... 6 3.3 系统的总体功能设计 .............................................................................................. 7 3.3.1总体功能设计 .................................................................................................. 7 3.3.2注册模块设计 .................................................................................................. 8 3.3.3 登录模块设计 ............................................................................................... 10 3.3.4用户间交互模块设计 ..................................................................................... 12 3.4数据库设计 .......................................................................................................... 14 3.4.1数据库物理模型 ............................................................................................ 14 3.4.2数据字典 ....................................................................................................... 15 4系统实现 ..................................................................................................................... 16 4.1网络通讯编码实现 ................................................................................................ 16 4.1.1聊天客户端部分代码 ..................................................................................... 16 4.1.2服务器端监听与转发消息代码 ....................................................................... 17 4.1.3服务端单线程上线处理代码 ........................................................................... 18 4.2 系统运行的效果图 ............................................................................................... 20 4.2.1 登录界面 ...................................................................................................... 20 4.2.2 主界面.......................................................................................................... 20 4.2.3 群聊天界面................................................................................................... 21 4.2.4 好友聊天界面 ............................................................................................... 22 4.2.5 好友查找界面 ............................................................................................... 23

联系合同范文客服:xxxxx#qq.com(#替换为@)