分类号:TP311.1 UDC:D10621-408-(2007)6163-0
密 级:公 开 编 号:2003032064
成 都 信 息 工 程 学 院
学 位 论 文
基于 B/S 方式的即时通讯软件的
设计与实现
论 文 作 者 姓 名 :
王亚平
申 请 学 位 专 业 :
网络工程
申 请 学 位 类 别 :
工学学士
指导教师姓名(职称):
陈麟(副教授)
论 文 提 交 日 期 :
2007 年 6 月 9 日
基于 B/S 方式的即时通讯软件的设计与实现
摘 要
即时通讯(Instant Messaging)是目前 Internet 上最为流行的通讯方式,而各
种各样的即时通讯软件也层出不穷;服务提供商也提供了越来越丰富的通讯服务
功能。随着互联网的发展,即时通讯的运用将日益广泛,即时通讯软件业方兴未
艾。本文首先描述了即时通讯业的发展和现状,然后初步探讨了即时通讯所涉及
到的一些技术,最后对现有的技术进行了对比和分析,提出了一些可能的改进方
案,并且设计了一个名为 web-msn 的即时通讯系统。
web-msn 是基于 B/S 的模式的即时通讯系统,通过 IE 等浏览器直接完成客
户端的登录、数据传输,更加便捷了用户之间的通讯和交友;使用最新的 Ajax
技术,使其非常快,无需等待页面的刷新,实现了即时通讯的功能。
在系统设计与建模过程中,使用了 UML 和面向对象的分析、设计方法,本系
统基于.NET Framework 1.1,使用 Visual Studio .NET 2003 作为开发工具,将.NET
中的一些新技术运用到了系统中;在开发过程中用到了时下流行的重构开发方法,
优化了系统的设计。
关键词:Web-msn;即时通讯;B/S; Ajax
The Design and Implementation of Instant Message Based
on B/S
Abstract
Instant message is currently the most popular way to communicate on the
Internet , by the way various instant message software have been continuously
appearing; service provider offers more and more communication services nowadays.
As the development of the Internet, instant message will be more widely used than
before. This article first describes the development and the current status of the instant
message. Then it discusses the technologies of the instant message such as
communication protocol, service mode and friend-making mode. It makes a
comparison and analysis with respect to the current technology and also provides
some possible solutions for improvement. At last it designs and develops an instant
message system named web-msn.
The web-msn system is an instant message system which bases on b/s mode.
You can login and interact with it through IE. It makes communication and finding
friends more conveniently. It is designed using Ajax, which doesn’t need to wait for
refreshing page, so carry out communication instantly.
This system is based on .NET Framework 1.1 and uses Visual Studio .NET 2003
as the development tool. It accumulated some new technology in .NET into our
system. During the process of development, it used the popular reconstruction
development method, which optimizes the system design.
Key words: Web-msn; Instant Message; B/S; Ajax
目 录
论文总页数:24 页
1 引言.......................................................................1
2 系统分析...................................................................2
2.1 课题目的...............................................................2
2.2 课题意义...............................................................2
2.3 应解决的问题...........................................................2
2.4 需要实现的功能.........................................................2
2.5 开发环境...............................................................2
2.5.1 vs2003 开发环境介绍 ...............................................2
2.5.2 Sql Server 2000 介绍 ..............................................3
2.5.3 C#语言介绍 .......................................................3
2.6 关键技术-Ajax 简介 .....................................................3
3 需求分析...................................................................3
3.1 即时消息的一般需求.....................................................3
3.2 即时通讯系统需求.......................................................4
4 系统设计...................................................................5
4.1 方案论证...............................................................5
4.1.1 “即时”技术的选择 ................................................5
4.1.2 web-msn 的模型选择 ................................................6
4.2 数据库设计.............................................................8
4.2.1 数据表设计 .......................................................8
4.2.2 存储过程设计 .....................................................8
4.3 系统功能分析与设计.....................................................9
4.4 系统模块设计..........................................................11
4.4.1 注册模块 ........................................................11
4.4.2 登录模块 ........................................................11
4.4.3 传输信息模块 ....................................................12
4.4.4 退出系统模块 ....................................................13
5 系统实现..................................................................14
5.1 发送消息功能实现......................................................14
5.2 接收消息功能实现......................................................15
6 测试......................................................................17
6.1 测试内容..............................................................17
6.2 测试结果..............................................................17
结 论.....................................................................18
参考文献.....................................................................19
附 录.....................................................................20
致 谢.....................................................................23
声 明.....................................................................24