摘要:计算机从出现到现在有了飞速的发展,现阶段的计算机已经不单单是用于进行运算的独立的个体了,跟随计算机一同发展的还有互联网技术,经过了长久的发展,互联网技术有了日新月异的发展,它的发展速度和计算机的发展速度一样的恐怖,从出现一直到现在,它已经在人们的生活的各个方面发挥着自己的作用,而且是不可替代的作用。因为计算机发展到现在已经成为一种廉价的生活物品,可以预想到未来人们都会使用计算机,上网的人也会逐渐增多,会有不断的人完善和更新出更好更棒的互联网服务,来提高自己的生活水平。我国近几年经济和社会在不断的发展,互联网也得到了广大的支持,网络更是已经融入了广大人民的日常生活。在计算机编程方面,互联网软件开发逐步转向以java为首的面向对象的编程技术,传统的面向过程的编程技术已经逐渐退出了历史的舞台,java正以不可思议的速度发展。人们日常的生活,教育,网银,网购,面对面的网上视频,以及现在逐渐被大众接受的网络游戏都在使用面向对象的技术。而且java自身的优势以及特点能够真正减少了企业的开发成本和开发人员的开发时间和难度。
在以前,人们获取信息的方式十分单一,通过电视,广播,信件以及人们的口头相传,这种方式效率十分的底下,得到的信息也很局限。现阶段上网查找成为人们获取信息的主要途径,它具有快速,方便,以及传递的特点。所以人们对网上的即时面对面聊天产生了需要。一个界面清新,简单,并且高效的网络聊天室一定会受到大众的喜爱。为了这个目的,构建此聊天系统。
本文将介绍网络聊天室程序的设计与完成。
关键词:网络聊天室;Java;客户机/服务器;Socket;
Java chat room system design and implementation
Abstract: With the development of Internet technology, network technology is developing very fast in the area of computer technology, one of emerged from it until now, it in many aspects, such as politics, economy, life play an irreplaceable role. With the growing popularity of the computer and popularization, the future will be more and more people use the Internet, enjoy the constantly update and improve the network services, to improve the level of their work lives. With the development of our economy and the popularization of the Internet, the Internet technology is also used more in the daily life of people. In application development and process oriented programming technology is gradually replaced by object-oriented programming technology, the computer software design and development has become the dominant, especially in the development of network technology, the object-oriented Java language programming is development rapidly in explosive. Remote education, online banking, shopping online, video online, and online games are all using object-oriented Java technology. And Java portable features enable Java programs to be compiled into bytecode that is not relevant to the platform, which enables Java programs to run on machines with Java interpreters. It really reduces the development cost of the enterprise and the development time and difficulty of the developer.
In today's society, people's lives have long been inseparable from the Internet. In the future, the life and work of society will depend more on the development of digital technology, more and more networked, digital, electronic and virtualized. E-commerce is also becoming more and more relevant with the development of the Internet and people's life. The use of the development of the Internet and the current situation and development trend, can believe network technology step by step change our work and lifestyle, and social values will all change of step by step.
In today's rapid development of network, the query on the Internet become people to quickly get published, and transfer information important channel, it in many aspects, such as people, political economy, life play an important role. Traditional letter-writing methods do not satisfy people's immediate demand for information. Thus, can chat face to face on the Internet become important human needs, a popular chat tools should be: interface and pure and fresh, simple operation, humanity, saving system resources. For this purpose, build the chat system.
This paper completes the development of an online chat room program through Java's sockets. This article introduces the design and completion of network chat room program.
Key words: chat rooms; the Java; Client / Server;the Socket;
目 录
摘要 I
Abstract II
目 录 III
1 引言 1
2 网络聊天室的简介 2
2.1网络聊天室现状和发展 2
3 完成网络聊天室的技术以及环境 4
3.1 Java的介绍 4
3.2 Java的特点 4
3.3 TCP/IP协议的知识 5
3.4 Socket的介绍 6
3.5 开发工具 6
4 网络聊天室系统的设计 7
4.1项目概述 7
4.2 网络聊天室系统的设计 7
5 系统详细设计 8
5.1 服务器模块的设计 8
5.2 客户端模块的设计 8
6 系统测试 9
6.1 单元测试 9
6.2 系统测试 9
7 总结 10
参考文献 11
致谢 12