摘 要:網絡通信在當今信息社會中起著不可或缺的作用 ,人們可以利用網絡通信技術進行即時的信息交流。例如,人們可以通過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.
目 錄