基于Java的简单网络聊天室编程.doc


文档分类:IT计算机 | 页数:约33页 举报非法文档有奖
1/33
下载提示
  • 1.该资料是网友上传的,本站提供全文预览,预览什么样,下载就什么样。
  • 2.下载该文档所得收入归上传者、原创者。
  • 3.下载的文档,不会出现我们的网址水印。
1/33
文档列表 文档介绍
《 TCP/IP 技术》课程论文 1 基于 Java 的简单网络聊天室编程摘要: 当前是信息网络得到飞速发展的时代, 尤其是计算机和通信技术的发展和结合, 深深的影响着我们的生活、学****和工作方式。其中, 网络聊天工具成为人们日常交流的一种重要工具, 它成本低, 通信速度快, 方便信息交流和资料的传递。本次开发的网络聊天系统是基于开放的 Java 应用程序设计的, 系统采用客户机/ 服务器的架构模式, 由客户端程序和服务器程序外加服务器端, 用于存放客户数据的数据库组成, 使用 Java 提供的 Socket 类以及 Java 的多线程功能,在不同的端口上部署各类服务,可以在单个程序中同时运行多个不同进程,而客户端通过 Socket 发送信息给服务器,从而实现多点对多点的聊天。关键字: Java , 交互性, Socket 类, 多线程 Z hao cheng-yu Abstract : The rapid development of the works, especially the development and integration puter munication technologies, has deeply affected our lives, learning and work. Among them, the chat tool es an important tool for munication, because itis low cost, munication and facilitat einformation exchange and data transmission. The development of the chat system is designed based on open Java application. It can be dynamic, real-time information transfer and efficient interaction so that it can deal more effectively with customer requests, and is easy to maintain and update. The system will use the client / server architecture model, which includes the client program and server programs plus server-side database used to store customer data. By using the socket class provided by java and java multi-threading capability , we can dep loy various services ona different port and a number of different processes can be run simultaneously ina single program. Clients send information to the server through the socket in order to achieve multi-point-to-multipoint chat. K ey words : Java, interactivity, the Socket class, multi-threaded 《 TCP/IP 技术》课程论文 2 1. 引言现在互联网越来越发达,网络聊天工具成为人们日常交流的一种重要工具,它成本低, 通信速度快, 方便信息交流和资料的传递, 所以开发一个界面友好、易于操作的聊天工具能较好地解决电话的单线程通信以及费用高昂等问题。随着网络普及程度的提高, 人们对于通信软件的要求越来越趋于简单操作,同步实时,以及更简单的网络传输。本次开发的网络聊天系统是基于开放的 Java 应用程序设计的,能动态、实时地完成信息的传递, 且具有高效的交互性, 能更有效地处理客户请求, 易于维护和更新。系统分为两部分: 客户端和服务器端。客户端主要实现新建用户、用户登录、消息的收发功能以及群聊功能, 客户端申请与服务器端建立连接, 当客户端与服务器端建立连接通道后就可以像服务器端发送新建用户信息和登录信息, 以及好友管理、信息编辑、发送和接收的功能; 服务器端主要完成建立连接、数据库操作和监听客户三大功能,服务器端建立一个 Server Socke t 的连接, 不断侦听客户端是否建立连接或断开连接, 如果有客户端申请连接

基于Java的简单网络聊天室编程 来自淘豆网www.taodocs.com转载请标明出处.

非法内容举报中心
文档信息
  • 页数33
  • 收藏数0 收藏
  • 顶次数0
  • 上传人6188
  • 文件大小455 KB
  • 时间2017-05-27