计算机本科毕业论文:即时网络聊天软件开发(服务器端)
原站著录信息
摘要
即时网络聊天软件 摘要 本软件后台数据库采用Microsoft公司的Access。通过对现在流行的一些Icq的参考,建立数据库,名为icqdb,数据库共建立两个表,一个是用户的基本信息,包括昵称,Jicq号码等。一个是用户的好友表,包括用户自己的号码和好友的号码。服务器与客户间通过套接口Socket(TCP)连接。客户通过Socket (InetAddress,port)建立与服务器的连接。然后双方通过该输入输出流来相互传递信息,一旦收到客户方的连接请求,服务器accept()方法返回一个新建的Socket对象。客…
即时网络聊天软件
摘要 本软件后台数据库采用Microsoft公司的Access。通过对现在流行的一些Icq的参考,建立数据库,名为icqdb,数据库共建立两个表,一个是用户的基本信息,包括昵称,Jicq号码等。一个是用户的好友表,包括用户自己的号码和好友的号码。服务器与客户间通过套接口Socket(TCP)连接。客户通过Socket (InetAddress,port)建立与服务器的连接。然后双方通过该输入输出流来相互传递信息,一旦收到客户方的连接请求,服务器accept()方法返回一个新建的Socket对象。客户端然后向服务器发送消息,针对不同的消息处理请求。客户通过Socket(InetAddress,port)建立与服务器的连接。服务器与客户都通过构造BufferedReader,PrintWriter来建立输入输出流,然后双方通过该输入输出流来相互传递信息,一旦收到客户方的连接请求,服务器accept()方法返回一个新建的Socket对象。客户端然后向服务器发送消息,虽然UDP不可靠但是对于icq可靠性并不太重要,而且UDP快速,所以客户间发送信息选择UDP。
关键词 即时 通讯 网络 软件
Immediate Communication Software
Abstract This communication software use Microsoft’s SQL Server2000 as datebase. Refer to some popular icq design, establish database as javaicq. Creat two tables, one make basic information, consist of the name of Jicq , the number of Jicq, and as so on. The other is friend table of user, consist of the number of user and the number of friends.
Service is connected with client by Socket(TCP). Establish connection with client and service by Socket InetAddress, port). Then they communicate information by inputting stream and outputting stream. Service will return a new object of socket as receive request of client. Then client port sent information to services, the services handle the messages by the different requests.
Service and client build the I/O stream by constructing the BufferedReader,PrintWriter,then they communicat with each other by the I/O stream. Service will return a new object of socket while recived a request about connection from client. Then client port sends the information to service. Although UDP is increditable, it is not important to ICQ. And UDP is fast in speed, so that most clients chose UDP as tranmission protocal.
Keywords immediate communication intertnet software
目 录
1 引言 1
1.1 JAVA简介 1
1.1.1 Java语言的发展经历 1
1.1.2 Java工业 1
1.1.3 Java平台技术 1
1.1.3 Java可移植特性 2
1.1.4 Java语言特性 2
1.2 即时通信软件简介 2
1.2.1 市场背景和意义 2
1.2.2 软件现状 3
1.2.3 中国的即时聊天软件现状 3
1.2.4 存在问题 3
1.2.5 发展趋势 4
1.3可行性研究 4
1.3.1 设计要求 4
1.3.2 技术可行性分析 4
1.3.3 操作上的可行性 5
1.4 各章节简介 5
1.4.1 服务器端 5
1.4.2 客户端 5
1.4.3 数据库的设计 5
2 系统需求分析 6
2.1 系统综合要求 6
2.2 系统逻辑模式 7
2.3 功能设计: 7
2.3.1 用户注册 7
2.3.2 用户登录 8
2.3.3 用户添加好友 9
2.3.4 用户删除好友 9
2.3.5 修改个人信息和系统信息 9
2.3.6 用户发送和接收消息 10
2.4 数据字典和关键字 10
3 系统设计 13
3.1 C/S工作原理 13
3.2 客户机/服务器工作的模式 14
3.3 套接字(SOCKET)原理 15
3.3.1 流套接字(Stream Socket) 15
3.3.2 自寻址套接字(Datagram Sockets) 17
3.4 服务器端设计 20
3.4.1 服务器端套接字原理 20
3.4.2 服务器端原理图 21
3.4.3服务器端udp原理 21
3.4.4 服务器udp原理图 22
3.5 客户端设计 23
3.5.1 客户端socket原理 23
3.5.2 客户端原理图 24
3.5.3 客户端udp原理 24
3.5.4 客户端各个功能原理 25
4 详细设计 28
4.1 服务器端 28
4.1.1 建立ServerSocket 28
4.1.2 使用ServerSocket 29
4.1.3 从客户端接受和处理请求 30
4.1.4 异常处理:特定套接字的异常 31
4.1.5 服务器udp 34
4.1.6 服务代理: 37
4.2 客户端 40
4.2.1 客户端socket 40
4.2.2 客户端udp 42
4.2.3 登陆模块 44
4.2.4 注册模块 45
4.2.5 通讯模块 45
4.2.6 查找好友模块 47
4.2.7 修改系统信息和个人信息模块 48
4.3 数据库设计 49
4.3.1 icqno表 49
4.3.2 friend表 49
4.3.3 软件对数据库的实现 50
5 软件测试 52
6 使用说明书 53
6.1 功能简介及运行环境 53
6.2 系统的安装手册 53
6.3 系统操作手册 53
结 论 56
致 谢 58
参 考 文 献 59
全文与附件
提交申请后,可在会员中心查看原件和附件的查找进度。
