【正文】
................... 12 4 即時(shí)通信系統(tǒng)設(shè)計(jì) ............................................................................................................ 14 數(shù)據(jù)庫(kù)設(shè)計(jì) .................................................................................................................. 14 系統(tǒng)模塊設(shè)計(jì) .............................................................................................................. 15 聊天系統(tǒng)工作原理圖 ........................................................................................... 15 系統(tǒng)功能模塊圖: ............................................................................................... 16 系統(tǒng)用例圖 ........................................................................................................... 16 活動(dòng)圖 ................................................................................................................... 17 系統(tǒng)類設(shè)計(jì) .................................................................................................................. 19 Message 類的設(shè)計(jì) : ............................................................................................ 19 截圖類的設(shè)計(jì): ................................................................................................... 20 聊天記錄類的設(shè)計(jì): ........................................................................................... 21 服務(wù)端線程 的設(shè)計(jì): ........................................................................................... 22 5 即時(shí)通信系統(tǒng)實(shí)現(xiàn) ............................................................................................................ 22 實(shí)現(xiàn)概況 ...................................................................................................................... 22 注冊(cè)模塊 ...................................................................................................................... 23 流程圖 ................................................................................................................... 23 關(guān)鍵代碼 ............................................................................................................... 23 登錄模塊 ...................................................................................................................... 25 流程圖 ................................................................................................................... 25 關(guān)鍵代碼 ............................................................................................................... 26 聊天模塊 ...................................................................................................................... 30 流程圖 ................................................................................................................... 30 關(guān)鍵代碼 ............................................................................................................... 31 文件模塊 ...................................................................................................................... 35 流程圖 ................................................................................................................... 35 關(guān)鍵代碼 ............................................................................................................... 35 用戶管理模塊 .............................................................................................................. 41 流程圖 ................................................................................................................... 41 關(guān)鍵代碼 ............................................................................................................... 42 其他功能的實(shí)現(xiàn) .......................................................................................................... 45 截圖功能的實(shí)現(xiàn) ................................................................................................... 45 聊天記錄功能的實(shí)現(xiàn) ........................................................................................... 46 服務(wù)端線程的實(shí)現(xiàn) ............................................................................................... 48 用戶界面的設(shè)計(jì) .......................................................................................................... 48 登陸界面 ............................................................................................................... 48 好友列表 ............................................................................................................... 49 聊天界面 ............................................................................................................... 50 結(jié) 論 ........................................................................................................................................ 51 致 謝 ........................................................................................................................................ 52 參考文獻(xiàn) .................................................................................................................................. 53 附錄 A 英文原文 ................................................................................................................... 55 附錄 B 漢語(yǔ)翻譯 ................................................................................................................... 62 1 1 緒 論 即時(shí)通倍系統(tǒng)概述和選題背景 即時(shí)通信 (Instant Messaging,縮寫為 IM),是以萬(wàn)維網(wǎng)為基礎(chǔ) ,實(shí)現(xiàn)通信雙方語(yǔ)言、文件、語(yǔ)音等實(shí)時(shí)信息傳送的通信過(guò)程 [1]。 關(guān)鍵詞 :Swing 編程; C/S;多線程編程;即時(shí)通信系統(tǒng) Abstract With the development of the Inter, more and more people are using instant messaging tools. IM (IM) is a way to allow users to send and receive instant messages and other Inter realtime munication most important feature of instant messaging is its real time. As long as two peopleare online at the same time, you two do not have to wait and can send text, files, audio,video to each other like multimedia phones. As long as there is a work,