基于Socket的多客户端网络聊天系统的开发与设计.doc

基于Socket的多客户端网络聊天系统的开发与设计.doc

  1. 1、本文档共52页,可阅读全部内容。
  2. 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
基于Socket的多客户端网络聊天系统的开发与设计

目 录 前言 3 1 JAVA的功能与编程 3 1.1 Java的概述 3 1.2 JAVA的优势 5 1.3 Java 应用于网络 8 2 系统分析 12 2.1 系统基本功能描述 12 2.2 可行性分析 12 2.3 课题来源 13 2.4 需求分析 13 3 系统总体设计 14 3.1 数据库设计 14 3.2 简易聊天工具系统的总体设计要点 15 3 .3 简易聊天工具系统的设计步骤及功能模块划分 15 3.4 简易聊天工具系统各功能模块 16 4系统环境与测试 26 4.1开发环境工具 26 4.2 硬件环境 26 4.3功能模块的测试 26 参 考 文 献: 29 基于Socket的简易网络聊天系统的开发与设计 学生:庄炜杰 (指导老师:林建兵) (莆田学院信息工程学院) 摘要:随着网络技术的在校园中的普及,聊天工具已经成为一种必不可少的校内交流工具,受到越来越多的同学的青睐。市场上有很多优秀的聊天工具,用的最广范的最被人们所接受的有腾讯QQ、MSN、人人网等等,但此简易聊天工具是专门针对学校内部的特点使其在网络聊天产业中占有一席之地。该系统的开发主要是服务器端和客户端两个方面。服务器端通过套接字与服务器建立连接,服务器会接受客户端的请求,并且会按要求转发客户端所要传递的信息,刷新用户信息。后者通过与服务器建立连接,来进行客户端之间P2P的信息交流。其中用到了局域网通信机制的原理,通过实现Runnable接口建立多线程机制。开发中使用了计算机网络编程技术,如C/S模式,多线程技术,网络通信等等。在网络通信中,读取消息的和发送消息,是利用Stream来实现交换,其中介绍了如何实现一个构建的信息交换,包含了基本的软件工程的方法。通过这些分析,该简易聊天工具系统采用Java语言进行编写,本系统是以Eclipse为开发平台。首先建立系统应用原型,然后进行修正和改进,直到完成可发布版系统。 关键词:局域网 聊天 套接字 Java Eclipse 简易聊天工具 Development and design of multiple client network chat system based on Socket Student:zhuang wei jie(Faclty Asviser:lin jian bing) Abstract: With the development of network technology in the campus of popularization, chat tools has become an indispensable tool in exchange, more and more students of all ages. There are a lot of good chat tools on the market, with the most extensive and most accepted with Tencent QQ, MSN, Renren and so on, but the client chat tool is designed according to the characteristics of internal school which occupies a space for one person in the industry in the Internet chat. The development of this system is mainly two aspects of server and client. The server through socket to establish a connection with the server, the server will accept the request of the client, and according to the requirements of the client message forwarding, refresh user information. The latter through a connection with the server, carries on communication between P2P client. Which uses the principle of LAN communication mechanism, establish multi thread mechanism by implementing the Runnable interface. Computer network progra

文档评论(0)

yaobanwd + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档