没有合适的资源?快使用搜索试试~ 我知道了~
学士学位论文—-通讯系统软件工程.doc
0 下载量 97 浏览量
2023-06-30
08:01:13
上传
评论
收藏 1.46MB DOC 举报
温馨提示
试读
43页
学士学位论文—-通讯系统软件工程.doc
资源推荐
资源详情
资源评论
xx 化工大学学士学位论文
―I―
xxx 化工大学
本科毕业论文
题 目: 通讯系统
院 系:计算机科学与技术学院
专 业:软件工程
班 级:软件 1101 班
学生姓名:xxx
指导教师:xxx
论文提交日期: 2009 年 6 月 10 日
论文答辩日期: 2009 年 6 月 29 日
xx 化工大学学士学位论文
―II―
内容摘要
在网络飞速发展的今天,互联网成为人们快速获取、发布和传递信息的重要渠道,它
在人们政治、经济、生活等各个方面发挥着重要的作用。互联网上存在大量的信息所以信
息交换也显得尤为重要。人们一直在寻找一种方便、低廉的交流信息的工具,因此网上聊
天便成为人们的首选。本论文通过 JAVA 的 Socket 实现了一个局域网的聊天室——基于
JAVA 的聊天室的设计与实现。本聊天室服务器包括显示在线用户、日志管理、聊天信息
管理、发送系统信息等功能。客户端包括登录、注册、公聊、私聊传送文本文件等功能。
本论文使用的是 JAVA 语言, JAVA 丰富的类库提供了大量的类来满足网络化、多线
程、面向对象系统的需要。语言包提供的支持包括字符串处理、多线程处理、数学函数处
理等,可以用它简单地实现 JAVA 程序的运行平台。实用程序包提供的支持包括哈希表、
堆栈、可变数组、时间和日期等。输入输出包用统一的"流"模型来实现所有格式的 I/O,
包括文件系统、网络、输入低级网络包用于实现 Socket 编程。抽象图形用户接口包实现
了不同平台的计算机的图形用户接口部件,包括窗口、菜单、滚动条、对话框等,使得 JAVA
可以移植到不同平台的机器,并且简化了用户/服务器模型的程序设计。
本论文提出一个局域网聊天软件的解决方案。该聊天软件包括服务器端和客户端两个
模块,客户端通过服务器端进行通信。服务器端模块主要实现了服务器的配置和数据的传
递以及日志的保存;客户端模块主要实现了用户注册、登录、文字聊天、.txt 文件的传送
与接收功能。
该软件能够帮助企业在局域网内搭建起自己的聊天系统,避免企业内部员工使用类似
QQ 等软件泄露内部信息,同时为了提高员工的工作效率本系统舍弃与以往聊天软件相比
下的娱乐功能,虽然乏味但却适用。该软件只实现了聊天的基本功能,还有很多不足之处
需要改进。
【关键词】因特网 聊天室 JAVA 套接字
xx 化工大学学士学位论文
―III―
ABSTRACT
In network rapid development today, the Internet become the important channel for people
to quickly get, publish and transfer information, it in people politics, economy, life and others a
spects plays an important role. There is a lot of information on the Internet so the exchange of i
nformation is particularly important. People have been looking for a convenient, inexpensive co
mmunication of information tools, so online chat will become a priority t choice for most peopl
e. This paper, by JAVA Socket realizes a LAN chat room - design and realization of chat room
based on JAVA. This chat room server includes the functions of showing the online users, log
management, chat information management, sending system information and so on.. The client
includes login,registration,male chat,private chat transmit text files, and other functions.
This article uses JAVA language, that owns various class to meet different needs of the
network, multithreading, object-oriented system. Language packs provide string processing,
multithreading processing and mathematical processing. We can use it to simply realize the
operation platform for Java program. Utility package provides support which includes hash
table, stack, variable array, the time and date, etc. Input and output package are both bases on
‘flow’ model to realize all formats of I/O, including the file system, network, input low-level
network packet which used to implement the Socket programming. Abstract graphic user
interface package implements graphical user interface components of computers in different
plantform, including windows, menus, scroll bar, dialogs, etc., which enables Java to transplant
to machines in different plantforms and simplifies the progarmming design of user/server
model.
In this article I present a solution to LAN chat software. This software is made up of two
modules: server and client. The serve implements communicate by client. Serve module
mainly realizes the server's configuration, transmission of the data and the save of the log. The
client module mainly realizes user register, login, text chat and the send and the receive of TXT
files.
This software can help companies build up their own chat system within the local area
network, avoiding internal staff leak internal information by using software like QQ and MSN.
Meanwhile, compared with traditional chatting software, this software abandons entertainment
function in order to improve the work efficiency of employees. Boring but applied. This
software only implements some basic functions of chatting, there are still many deficiencies
need to improve.
Key words:Internet chat rooms java socket
xx 化工大学学士学位论文
―IV―
目 录
第一章 绪论 .................................................................................................................................................6
1.1 开发背景 ..............................................................................................................................................6
1.2 国内外发展状况 ..................................................................................................................................6
1.3 系统设计目标 ......................................................................................................................................6
1.4 研究的意义 ..........................................................................................................................................7
第二章 系统开发所采用的技术 .................................................................................................................8
2.1 JAVA 技术 ............................................................................................................................................8
2.2 JAVA 语言在网络上的应用 ................................................................................................................8
2.3 TCP/IP 协议常识 .................................................................................................................................8
2.4 端口号 ..................................................................................................................................................9
2.5 Socket 的简介 .......................................................................................................................................9
2.6 Eclipse 3.0 开发环境...........................................................................................................................11
第三章 局域网聊天系统的需求分析 .......................................................................................................12
3.1 可行性分析 ........................................................................................................................................12
3.1.1 技术可行性 .............................................................................................................................12
3.1.2 经济可行性 .............................................................................................................................13
3.1.3 操作可行性 .............................................................................................................................13
3.2 功能分析 ............................................................................................................................................13
3.3 用例分析 ............................................................................................................................................14
3.4 数据模型分析 ....................................................................................................................................15
3.4.1 系统 E-R 图.............................................................................................................................15
第四章 系统总体设计 ...............................................................................................................................16
4.1 系统通信模型与拓扑结构设计 ........................................................................................................16
4.1.1 即时通讯系统的一般模型 .....................................................................................................16
4.1.2 即时通讯系统服务的拓扑模型 .............................................................................................16
4.2 功能设计 ............................................................................................................................................17
4.2.1 服务器端功能设计 .................................................................................................................18
4.2.2 客户端功能设计 .....................................................................................................................18
第五章 系统详细设计与实现 ...................................................................................................................22
5.1 服务器 ................................................................................................................................................22
5.2 登录 ....................................................................................................................................................23
5.3 注册 ....................................................................................................................................................24
5.4 客户端主聊天界面 ............................................................................................................................26
5.5 服务器音乐播放 ................................................................................................................................27
5.6 文件传送 ............................................................................................................................................29
xx 化工大学学士学位论文
―V―
第六章 系统测试 .......................................................................................................................................31
6.1 测试概论 ............................................................................................................................................31
6.2 局域网聊天室系统采用的测试方法 ................................................................................................31
6.3 局域网聊天室功能测试 ....................................................................................................................31
结 论 ...........................................................................................................................................................34
致 谢 ...............................................................................................................................................................35
参考文献 ...........................................................................................................................................................36
附录一 代码 ...................................................................................................................................................37
剩余42页未读,继续阅读
资源评论
zzzzl333
- 粉丝: 707
- 资源: 7万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 数据库管理工具:dbeaver-ce-23.3.0-stable.x86-64.rpm
- 数据库管理工具:dbeaver-ce-23.3.0-macos-x86-64.dmg
- 数据库管理工具:dbeaver-ce-23.3.0-macos-aarch64.dmg
- 数据库管理工具:dbeaver-ce-23.2.5-stable.x86-64.rpm
- 数据库管理工具:dbeaver-ce-23.2.5-macos-x86-64.dmg
- 数据库管理工具:dbeaver-ce-23.2.5-macos-aarch64.dmg
- Kettle上连接HDFS,同步虚拟机上MySQL数据到HDFS
- 数据库管理工具:dbeaver-ce-23.2.4-x86-64-setup.exe
- 数据库管理工具:dbeaver-ce-23.2.4-stable.x86-64.rpm
- 含小数的十进制转N进制源代码.rar
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功