- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
基于Socket的网络聊天系统开发与设计
摘 要
近年来随着计算机技术的飞速发展,特别是Internet技术的发展,已经深刻的改变到了人们生活的方方面面。这时过去的种种陈旧的通讯方式,都已经不能满足现代生活的需要。人们希望能够用更低廉的价格,更加方便快捷的方式,来实现即时通讯。这时开发一套基于Internet技术的网络聊天系统变得尤为重要。
本人以基于Java语言开发的网络聊天系统为实践基础,详细的介绍了聊天系统的功能设计和界面逻辑结构。最终实现了一个可以实现私聊、群聊、传送文件的网络聊天系统。本次设计主要以Socket网络通讯作为基础,并以Object作为通讯载体,同时运用了一定的通讯协议知识开发完成。在界面方面,采用的是Java中的Swing技术来实现。为了实现多用户的连接,在服务器端将采用多线程的技术来实现。
关键词:Java Socket 通讯协议 Swing 多线程
Socket-based web chat system development and design
Abstract
Recent years, with the rapid development of computer technology, especially Internet technology, has profound change to all aspects of peoples lives. At this time all the old past, means of communication, have been unable to meet the needs of modern life. People want to use more low cost, more convenient and efficient way to achieve real-time communications. Then develop a network based on Internet technology, chat system becomes particularly important.
I developed Java-based chat system based on practice, detailed description of the chat function of the system design and interface, logical structure. Ultimately can achieve a whisper, group chat, send files online chat system. This design mostly Socket network communication as the basis, and with Object as the communication carrier, while the use of a certain protocol to complete the knowledge development. In the interface, the use of the Java in the Swing technologies. To achieve multi-user connection, the server will use the technology to implement multithreading.
Keywords:Java Socket Communication protocol Swing Multithreading
目录
一.绪论 4
1.1 课题背景 4
1.2 课题研究内容及意义 4
1.3 系统相关技术介绍 5
1.3.1 Java语言概述 5
1.3.2 TCP/IP协议 7
1.3.3 Socket编程 9
1.3.4 Swing简介 11
1.3.5 多线程技术介绍 12
二.系统需求分析 15
2.1 需求分析 15
2.2 可行性分析 16
2.3.1 社会可行性 16
2.3.2 用户可行性 16
2.3.3 技术可行性 16
2.3.4 经济可行性 17
2.3 系统开发环境 17
三.系统总体设计 18
3.1 客户端与服务器的通信 18
3.2 客户端与客户端的通信 18
3.3 系统的架构模式 19
四. 系统功能模块设计 20
4.1 服务器端的设计 20
4.1.1 服务器等待连接线程设计 20
4.1.2 服务器处理客户端信息线程设计 21
4.2 客户端设计 27
4.2.1 客户端登录模块设计 27
4.2.2 新用户
您可能关注的文档
最近下载
- 妇产科专业质量控制标准(医疗质量控制标准).pdf VIP
- 直升机系统-2(王华明--03)说课讲解.ppt VIP
- 肝性脑病患者护理查房.pptx VIP
- 小学生自制课本剧提升语文表达能力教学研究课题报告.docx
- 人教版八年级上册数学期中考试试题带答案.docx VIP
- 2025至2030全球及中国太空发射服务行业市场深度研究及发展前景投资可行性分析报告.docx VIP
- 爱国卫生知识竞赛题库(试题及答案).docx VIP
- 世界油页岩干馏技术.ppt VIP
- 小学英语三年级上册 Unit 6 Happy birthday! 第3课时分层作业 Part A Letters and sounds.docx VIP
- 2021年“华为杯”第十八届中国研究生数学建模竞赛题目D:抗乳腺癌候选药物的优化建模优秀论文范例含源代码(共五篇).pdf VIP
文档评论(0)