文档介绍:编号
本科生毕业设计
网络聊天程序
Network chat program
学生姓名
专业
计算机科学与技术
学号
指导教师
学院
计算机科学技术
2009年6月
摘要
随着互联网的快速发展,网络聊天工具已经作为一种重要的信息交流工具,受到越来越多的网民的青睐。meeting、腾讯QQ、MSN-Messager等等。该系统开发主要包括一个网络聊天服务器程序和一个网络聊天客户程序。前者通过Socket套接字建立服务器,服务器能读取、转发客户端发来信息,并能刷新用户列表。后者通过与服务器建立连接,来进行客户端与客户端的信息交流。其中用到了局域网通信机制的原理,通过直接继承Thread类来建立多线程。经过分析这些情况,该局域网聊天工具采用Eclipse为基本开发环境和java语言进行编写,首先可在短时间内建立系统应用原型,然后,对初始原型系统进行不断修正和改进,直到形成可行系统。
关键词:网络聊天套接字 Java
Abstract
Along with the fast development of , work chating tool has already e one kind of munication tools and received more and more web cams favor. At present, Chat tools have a broader application meeting, Tencent QQ, MSN-Messager, etc. This system development mainly includes two aspects of the server procedure of work chat and the customer procedure of work chat. The former establishes the server through the Socket, the server can read and deliver the information which client side sends, and can renovate the users tabulation. The latter make a connection with the server, carries munication between the client side and the client side. After analyzes these situations, this LAN chating tool takes Eclipse as the basic development environment piles in java language. first, it will establish the system application prototype in a short time. then, for the initial prototype system, it needs constantly revised and improved, until a viable system.
Key words: Network Chat Socket Java
目录
第一章概论 - 1 -
- 1 -
- 1 -
第二章 JAVA的网络功能与编程 - 3 -
JAVA概述 - 3 -
JAVA的特点 - 3 -
JAVA语言在网络上的应用 - 7 -
第三章总体设计 - 9 -
需求分析 - 9 -
设计要点 - 9 -
功能模块及设计步骤 - 10 -
功能模块 - 10 -
设计步骤 - 10 -
第四章详细设计与实现 - 12 -
开发环境 - 12 -
核心功能实现 - 12 -
Socket的简介 - 12 -
服务器与客户端之间的通信 - 14 -
流程图 - 15 -
功能模块的测试 - 18 -
总结 - 22 -
致谢 - 23 -
参考文献 - 24 -
附录 - 25 -
第一章概论
随着当前网络的迅速流行,网上聊天已经越来越受网民所青睐。因此开发网络聊天程序已经是相当有必要。同时在网站内增加聊天功能,它不仅可以提高网站的访问量,同时可以留着访客,更重要的是让访客透过聊天室实时的互相交流。meeting、腾讯QQ、MSN-Messager等