【正文】
................... 12 4 即時通信系統(tǒng)設(shè)計 ............................................................................................................ 14 數(shù)據(jù)庫設(shè)計 .................................................................................................................. 14 系統(tǒng)模塊設(shè)計 .............................................................................................................. 15 聊天系統(tǒng)工作原理圖 ........................................................................................... 15 系統(tǒng)功能模塊圖: ............................................................................................... 16 系統(tǒng)用例圖 ........................................................................................................... 16 活動圖 ................................................................................................................... 17 系統(tǒng)類設(shè)計 .................................................................................................................. 19 Message 類的設(shè)計 : ............................................................................................ 19 截圖類的設(shè)計: ................................................................................................... 20 聊天記錄類的設(shè)計: ........................................................................................... 21 服務(wù)端線程 的設(shè)計: ........................................................................................... 22 5 即時通信系統(tǒng)實現(xiàn) ............................................................................................................ 22 實現(xiàn)概況 ...................................................................................................................... 22 注冊模塊 ...................................................................................................................... 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 其他功能的實現(xiàn) .......................................................................................................... 45 截圖功能的實現(xiàn) ................................................................................................... 45 聊天記錄功能的實現(xiàn) ........................................................................................... 46 服務(wù)端線程的實現(xiàn) ............................................................................................... 48 用戶界面的設(shè)計 .......................................................................................................... 48 登陸界面 ............................................................................................................... 48 好友列表 ............................................................................................................... 49 聊天界面 ............................................................................................................... 50 結(jié) 論 ........................................................................................................................................ 51 致 謝 ........................................................................................................................................ 52 參考文獻(xiàn) .................................................................................................................................. 53 附錄 A 英文原文 ................................................................................................................... 55 附錄 B 漢語翻譯 ................................................................................................................... 62 1 1 緒 論 即時通倍系統(tǒng)概述和選題背景 即時通信 (Instant Messaging,縮寫為 IM),是以萬維網(wǎng)為基礎(chǔ) ,實現(xiàn)通信雙方語言、文件、語音等實時信息傳送的通信過程 [1]。 關(guān)鍵詞 :Swing 編程; C/S;多線程編程;即時通信系統(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,