【正文】
I摘 要隨著網(wǎng)絡(luò)通信技術(shù)和計(jì)算機(jī)技術(shù)的進(jìn)一步發(fā)展,即時(shí)通信(Instant Messaging)正在成為網(wǎng)絡(luò)在線活動(dòng)中不可缺少的業(yè)務(wù),對(duì)它的研究是互聯(lián)網(wǎng)應(yīng)用中一個(gè)熱點(diǎn)課題。即時(shí)通信軟件的誕生,推動(dòng)了企業(yè)工作效率的提高,降低了辦公費(fèi)用,給企業(yè)的管理帶來(lái)了新的思路和方法,并引起了人們對(duì)該應(yīng)用領(lǐng)域的關(guān)注。本文在現(xiàn)有的網(wǎng)絡(luò)通信技術(shù)、數(shù)據(jù)庫(kù)技術(shù)和信息安全技術(shù)的基礎(chǔ)上設(shè)計(jì)并實(shí)現(xiàn)了新型的企業(yè)即時(shí)通信系統(tǒng)(EIM,Enterprise Instant Messaging)。該系統(tǒng)為用戶提供了一個(gè)集文字通信、文件傳輸于一體的即時(shí)通信平臺(tái),基本滿足了企業(yè)用戶的要求。在對(duì)即時(shí)通信系統(tǒng)的服務(wù)器端和客戶端的主要組成模塊詳細(xì)剖析后,論文研究了各個(gè)模塊的詳細(xì)設(shè)計(jì)和實(shí)現(xiàn)方式,分別研究了每個(gè)模塊的主要功能,并給出了模塊運(yùn)行效果圖。系統(tǒng)實(shí)現(xiàn)后,對(duì)系統(tǒng)進(jìn)行了功能測(cè)試,并分析測(cè)試數(shù)據(jù)。實(shí)驗(yàn)數(shù)據(jù)表明,該系統(tǒng)具有易于實(shí)現(xiàn)、可靠性高、易于擴(kuò)展、傳輸效率高等特點(diǎn),達(dá)到了預(yù)定的設(shè)計(jì)目標(biāo)。關(guān)鍵詞:即時(shí)通信,Socket,通信模型, 文件傳輸理工大學(xué)學(xué)士學(xué)位論文IIAbstractWith the work munication technology and the further development of puter technology, instant messaging (Instant Messaging) is being an indispensable work of online business activities。 its research is a hot topic in Inter applications. The birth of instant messaging software, to promote the work efficiency of the enterprise, reducing business costs, to the enterprise39。s management has brought new ideas and methods, and aroused the concern of the applications. The subject in the existing work munication technology, database technology and information security technology based on the design and implementation of a new type of enterprise instant messaging system (EIM, Enterprise Instant Messaging). The system provides users with a set of text munication file transfer, instant messaging platforms in one, basically meet the requirements of business , the paper of the instant messaging system server and client modules of the main ponents of a detailed analysis, discusses the detailed design of each module and implementation, respectively, described the main function of each module, and gives the module flow chart. Finally, the paper of the instant messaging system designed for serverside performance test, and test data were analyzed. Experimental data show that the system has easy to implement, reliable, scalable, and high transmission efficiency, achieved its design goals. Keywords: Instant Messaging, Socket, Communication Model, File Transfer理工大學(xué)學(xué)士學(xué)位論文III目 錄1 緒論 .............................................................................................................................1 課題背景 ...............................................................................................................1 研究現(xiàn)狀 ...............................................................................................................1 研究意義 ...............................................................................................................2 研究?jī)?nèi)容 ...............................................................................................................3 論文結(jié)構(gòu) ...............................................................................................................3 本章小結(jié) ...............................................................................................................42 SOCKET 相關(guān)技術(shù)研究 ..............................................................................................5 主流即時(shí)通信模型 ...............................................................................................5 P2P 模型 ........................................................................................................5 C/S 模型 ........................................................................................................6 即時(shí)通信主流的通信協(xié)議 ...................................................................................7 UDP 協(xié)議 ......................................................................................................7 TCP 協(xié)議 .......................................................................................................8 SOCKET 技術(shù) ..........................................................................................................8 多線程技術(shù) ...........................................................................................................9 JDBC 技術(shù) ...........................................................................................................10 開(kāi)發(fā)工具介紹 .....................................................................................................11 Eclipse 簡(jiǎn)介 ................................................................................................11 MySQL 簡(jiǎn)介 ...............................................................................................12 Visio 簡(jiǎn)介 ....................................................................................................13 本章小結(jié) .............................................................................................................133 對(duì) SOCKET 通信需求分析 ......................................................................................14 即時(shí)通信系統(tǒng)總體需求 .....................................................................................14 系統(tǒng)功能描述 .....................................................................................................14 系統(tǒng)協(xié)議的選定 .................................................................................................14 系統(tǒng)設(shè)計(jì)性能分析 ..............................................................................................15 本章小結(jié) .............................................................................................................154 實(shí)現(xiàn) SOCKET 通信的方案和關(guān)鍵模塊的設(shè)計(jì) .......................................................16 系統(tǒng)總體結(jié)構(gòu)的描述 ......................................................................................16 系統(tǒng)功能模塊設(shè)計(jì) ...................................................................................17 服務(wù)器端工作流程 ..........................................................................................19 客戶端工作流程 .......................................................................................21 總體實(shí)現(xiàn)方案和類(lèi)的設(shè)計(jì) .................................................................................22 關(guān)鍵模塊詳細(xì)設(shè)計(jì)與實(shí)現(xiàn) ..................................................................................23 利用 Socket 進(jìn)行 TCP 連接 .............................................