摘 要:网络通信在当今信息社会中起着不可或缺的作用 ,人们可以利用网络通信技术进行即时的信息交流。例如,人们可以通过Internet搜索所要的信息,通过网上通信工具聊天,交流信息,上网购物等等。
本课题是应用了计算机网络通信技术和JAVA网络编程的基础知识,以JAVA为平台,利用Eclipse开发工具,并使用SQL Server 2000管理数据库数据开发出的基于Socket的网络即时通信系统。系统采用客户机/服务器(C/S)的模式设计,是一个三层C/S结构,数据库服务器、应用程序服务器端、应用程序客户端,按照此设计思想,系统采用C/S结构,可以将任务合理分配到客户机端和服务器端 ,从而降低了系统的通信开销。此系统共分为两个模块:客户端模块和服务器端模块。从操作简便、界面美观、灵活实用的用户要求出发,设计开发的网络通信系统可以实现用户注册,用户登录,消息通信和好友管理等主要功能。
本说明书主要介绍了本课题的研究意义以及开发背景、开发过程,和所完成的功能,并着重说明了开发设计的思想、技术难点和解决方案。
关键词:网络通信 JAVA平台 C/S Socket
The Design and Implementation of A Java-Based Internet Communication System
Abstract: Communication on Internet is very popular and crucial in people’s live. Using the network communication technology, we can chat with our friends at any time. For instance, we can chat or communicate with friends and our company by some chatting tools; we even can buy everything we want on Internet.
This system is designed based on computer networking technology and some relative knowledge, using JAVA and SQL SERVER 2,000 database system as tools to develop. This implementation is based on C/S (Client rver) model. The model can be divided into three levels: Databases level、Server level、Client level. According to this idea, we can distribute the task into two parts: the client and the server. The benefit is that the cost is cut down. From the needs of easy operation, beautiful and vivid interface and practical application, we can design a system which functions is including user registering, user login, adding friend, deleting friend, chatting and so on.
This paper introduces the background of the development, the functions demanded and the process of design. What’s more, the paper focuses on the design principles、implementation details、the key techniques and the solutions.
Keywords: Web application; Java; C/S model; Socket.
目 录