【正文】
可行性分析 ............................................................................................7 系統(tǒng)功能需求 .........................................................................................7 系統(tǒng)性能需求 ........................................................................................8 系統(tǒng)運(yùn)行需求 ......................................................................................8 數(shù)據(jù)流圖 .......................................................................................................8 頂層數(shù)據(jù)流圖 ........................................................................................8 一層數(shù)據(jù)流圖 ......................................................................................9 二層數(shù)據(jù)流圖 ......................................................................................93 概要設(shè)計(jì) .................................................................................................................................11 系統(tǒng)實(shí)現(xiàn)原理 .............................................................................................11 系統(tǒng)實(shí)現(xiàn)層次圖: ...................................................................................12 各模塊詳細(xì)功能 .........................................................................................12 服務(wù)器端結(jié)構(gòu) .......................................................................................12 客戶端結(jié)構(gòu) ..........................................................................................144 詳細(xì)設(shè)計(jì) .................................................................................................................................19 系統(tǒng)流程圖 .................................................................................................19 系統(tǒng)總體流程圖 ..................................................................................19 系統(tǒng)客戶端流程圖 ............................................................................20 編寫服務(wù)器端程序 .....................................................................................20 問題陳述 ..............................................................................................20 解決方案 ............................................................................................21 客戶端程序編寫 ............................................................................................................28 聊天室 ..................................................................................................38參考文獻(xiàn) ......................................................................................................................................46致謝 ...............................................................................................................................................451 緒論 國內(nèi)外聊天系統(tǒng)的研究現(xiàn)狀目前國內(nèi)外做聊天系統(tǒng)的公司很多,產(chǎn)品也琳瑯滿目,國內(nèi)有諸如騰訊、新浪 UC、網(wǎng)易泡泡等,國外有著名的 MSN(新版改名為 Live Messenger)以及跨平臺 Gaim 等。Socket 。 Client/Server 。聊天系統(tǒng)完成后將可進(jìn)行多人對多人的聊天,對好友進(jìn)行添加、刪除,對新用戶的注冊,發(fā)送消息、接受消息等等功能。服務(wù)器端設(shè)計(jì)與實(shí)現(xiàn)過程中,采用了多線程技術(shù),可以在單個程序當(dāng)中同時運(yùn)行多個不同的線程,執(zhí)行不同的任務(wù)。系統(tǒng)采用 C/S 結(jié)構(gòu),客戶端與客戶端以及客戶端與服務(wù)器端之間通過 Socket 傳送消息。 一般來說,聊天工具大多數(shù)由客戶端程序和服務(wù)器程序外加服務(wù)器端用于存放客戶數(shù)據(jù)的數(shù)據(jù)庫組成,本系統(tǒng)采用客戶機(jī)/服務(wù)器架構(gòu)模式通過 Java 提供的 Socket 類來連接客戶機(jī)和服務(wù)器并使客戶機(jī)和服務(wù)器之間相互通信,由于聊天是多點(diǎn)對多點(diǎn)的而 Java 提供的多線程功能用多線程可完成多點(diǎn)對多點(diǎn)的聊天,數(shù)據(jù)庫管理系統(tǒng)用 SQL Server2022 完成并通過 JDBCODBC 橋訪問數(shù)據(jù)庫。本科畢業(yè)論文(畢業(yè)設(shè)計(jì))題目:局域網(wǎng)聊天軟件系 院: 學(xué)生姓名:學(xué) 號: 專 業(yè):年 級: 完成日期: 指導(dǎo)教師: 摘 要在網(wǎng)絡(luò)越來越發(fā)達(dá)的今天,人們對網(wǎng)絡(luò)的依賴越來越多,越來越離不開網(wǎng)絡(luò),由此而產(chǎn)生的聊天工具越來越多,例如,國外的 ICQ、國內(nèi)騰訊公司開發(fā)的 OICQ?;?Java 網(wǎng)絡(luò)編程的強(qiáng)大功能,本次畢業(yè)設(shè)計(jì)使用 Java 編寫一個聊天系統(tǒng)。本系統(tǒng)建立在 JAVA 平臺上,系統(tǒng)的設(shè)計(jì)使用了面向?qū)ο蠹夹g(shù)和面向?qū)ο蟮脑O(shè)計(jì)原則。使用 JAVA 語言編寫,開發(fā)工具采用 Eclipse。大大增強(qiáng)了程序?qū)Ψ?wù)器資源的利用。關(guān)鍵字:多線程 ;客戶機(jī)/服務(wù)器 ;JAVA ; Socket ; Eclipse ; TCP/IPAbstractas 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 multi