目
录
1 绪论 .............................................................................................................................1
1.1 课题背景 ...............................................................................................................1
1.2 研究现状 ...............................................................................................................1
1.3 研究意义 ...............................................................................................................2
1.4 研究内容 ...............................................................................................................3
1.5 论文结构 ...............................................................................................................3
1.6 本章小结 ...............................................................................................................4
2 SOCKET 相关技术研究..............................................................................................5
2.1 主流即时通信模型 ...............................................................................................5
2.1.1 P2P 模型........................................................................................................5
2.1.2 C/S 模型 ........................................................................................................6
2.2 即时通信主流的通信协议 ...................................................................................7
2.2.1 UDP 协议 ......................................................................................................7
2.2.2 TCP 协议.......................................................................................................8
2.3 SOCKET 技术 ..........................................................................................................8
2.4 多线程技术 ...........................................................................................................9
2.5 JDBC 技术 ...........................................................................................................10
2.6 开发工具介绍 .....................................................................................................11
2.6.1 Eclipse 简介 ................................................................................................11
2.6.2 MySQL 简介 ...............................................................................................12
2.6.3 Visio 简介....................................................................................................13
2.7 本章小结 .............................................................................................................13
3 对 SOCKET 通信需求分析......................................................................................14
3.1 即时通信系统总体需求 .....................................................................................14
3.2 系统功能描述 .....................................................................................................14
3.3 系统协议的选定 .................................................................................................14
3.4 系统设计性能分析..............................................................................................15
3.5 本章小结 .............................................................................................................15
4 实现 SOCKET 通信的方案和关键模块的设计.......................................................16
4.1 系统总体结构的描述 ......................................................................................16
4.1.1 系统功能模块设计 ...................................................................................17
4.2 服务器端工作流程 ..........................................................................................19
4.2.1 客户端工作流程 .......................................................................................21
4.3 总体实现方案和类的设计 .................................................................................22
4.4 关键模块详细设计与实现..................................................................................23
4.4.1 利用 Socket 进行 TCP 连接.....................................................................23
4.4.2 面向连接的 Socket 机制的模块设计 .......................................................27
4.5 文件传输模块 ....................................................................................................28