【正文】
系 院: 學生姓名: 學 號: 專 業(yè): 年 級: 完成日期: 指導教師: 2 摘 要 在網絡越來越發(fā)達的今天,人們對網絡的依賴越來越多,越來越離不開網絡,由此而產生的聊天工具越來越多,例如,國外的 ICQ、國內騰訊公司開發(fā)的 OICQ?;?Java 網絡編程的強大功能 , 本 次畢業(yè)設計使用 Java 編寫一個聊天系統(tǒng)。 本系統(tǒng)建立在 JAVA 平臺上,系統(tǒng)的設計使用了面向對象技術和面向對象的設計原則。使用 JAVA 語言編寫,開發(fā)工具采用 Eclipse。大大增強了程序對服務器資源的利用。 關鍵字 : 多線程 ; 客戶機 /服務器 ; JAVA ; Socket ; Eclipse ; TCP/IP 3 Abstract as the work bee more and more developed, people bee more and more lean to the work, and can not leave with out it. This caused the chat materials bee more numerous, as the overseas ICQ system, the OICQ system that invented by Tencent Co., and so on. So we create a work chat medium just like the . Java work programming based on the power, the use of Java designed to prepare graduates a chat system. In general, the majority of the chat tool for client and server program in addition to serverside storage of customer data for the database, the system uses a client / server architecture model the adoption of Java provided Socket class connect client and server and between the client and server municate with each other, as the chat is to provide pointtomultipoint and multithreaded Java function to be pleted by using multithreaded chat and more pointtomultipoint, database management system with SQL Server2020 the pletion and adoption of JDBCODBC Bridge access the database. The system built on the JAVA platform, the system design using objectoriented technology and objectoriented design principles. System uses the C / S structure, client and clientside and serverside client and send messages through Socket. The use of JAVA language, development tools using Eclipse. Design and Implementation of serverside process, the use of multithreading technology, which can process in a single run at the same time a number of different threads, the implementation of different tasks. Procedures greatly enhanced the use of server resources. Chat system will allow people to plete chat to more friends, and the system can add, delete somebody, can deal with new user registration, send messages, receive messages and so on. Keywords : Multithreading 。JAVA 。Eclipse 。 國內外聊天系統(tǒng)的研究現(xiàn)狀 .................................................................. 5 JAVA 語言 .................................................................................................. 6 Java 的發(fā)展歷史 ................................................................................ 6 Java 的特點 ........................................................................................ 7 Java 與 Inter .................................................................................. 7 SOCKET 編程 ............................................................................................. 8 關于 TCP/IP 協(xié)議 ............................................................................. 8 服務器和客戶機 .................................................... 錯誤 !未定義書簽。 可行性分析 ..................................................................................... 10 系統(tǒng)功能需求 .................................................................................. 10 系統(tǒng)性能需求 ................................................................................. 11 系統(tǒng)運行需求 ............................................................................... 11 數(shù)據流圖 ................................................................................................ 11 頂層數(shù)據流圖 ................................................................................. 11 一層數(shù)據流圖 ............................................................................... 12 二層數(shù)據流圖 ............................................................................... 13 3 概要設計 ................................................................................................................................. 14 系統(tǒng)實現(xiàn)原理 ........................................................................................ 14 系統(tǒng)實現(xiàn)層次圖: .............................................................................. 15 各模塊詳細功能 .................................................................................... 15 服務器端結構 .................................................................................. 15 客戶端結構 ..................................................................................... 16 4 詳細設計 ................................................................................................................................. 17 系統(tǒng)流程圖 ........................................................................................... 17 系統(tǒng)總體流程圖 .............