【正文】
本科生畢業(yè)設(shè)計(jì)(論文) 聊天系統(tǒng)客戶端的設(shè)計(jì)與實(shí)現(xiàn) 摘 要 SOCKET是在 Windows進(jìn)行網(wǎng)絡(luò)通信編程的 API接口 , 也是 Windows網(wǎng)絡(luò)編程的事實(shí)標(biāo)準(zhǔn)。在網(wǎng)絡(luò)編程中最常用的方案便是 C/S模型。本程序是一個(gè)基于 C/S模式的網(wǎng)絡(luò)聊天程序,主要用于測試面向連接的 socket編程技術(shù)。本程序使用 Virtual C++。為方便測試,本程序采用 server(服務(wù)器端 )和 client(客戶端 )合一模式,使用簡潔方便。需要注意的是本程序 C/S端合一的模式和 服務(wù)器 地址 、服務(wù)器端口號固定以及自動申請 用戶登陸 ID的設(shè)計(jì) 不 只為 了方便測 試,而且適宜商業(yè)化,但是 在商業(yè)化階段 還是 需要進(jìn)行改進(jìn) 。 本文主要是對本軟件服務(wù)器端的設(shè)計(jì)作了比較詳細(xì)的介紹,并對服務(wù)器端進(jìn)行了初步的開發(fā)。而客戶端的設(shè)計(jì)有很多都需要完善??蛻舳耸墙o用戶使用的,從方便和美觀上,還都還有很多需要完善的地方。而且,由于時(shí)間關(guān)系,客戶端還有些功能沒有完全。如果要使本系統(tǒng)成為一個(gè)實(shí)際應(yīng)用系統(tǒng)并在網(wǎng)絡(luò)上實(shí)際應(yīng)用 ,還要再下一番功夫進(jìn)行設(shè)計(jì)。 關(guān)鍵詞 : 套接字 客戶機(jī) 服務(wù)器 網(wǎng)絡(luò)聊天 本科生畢業(yè)設(shè)計(jì)(論文) ABSTRACT The SOCKET connects in the API that the Windows carries on the work correspondence plait distance, is also the fact standard that the work of Windows weaves the distance. The most in mon use project would be the customer/server model in work weave distance. This text puts forward to carry out the Inter with the WINSOCK under customer/server model in the project of the familiar chat room software. This procedure is an according to customer/server mode of the work chat procedure, mainly used for the test to face to the copular socket plait distance. Use the Virtual C++ plaits write. Test for the convenience, the procedure adoption server (the server carry) and client (the customer carry) s unite as one the mode, using the simple and direct convenience. What to need to be no tice is this procedure the customer carry the server carry to unite as one of mode and obtain this machine IP address and au to be the customer debarkation ID the calculator automatically of design test for the convenience only, well proper and mercial, so need to carry on the improvement in the mercial stage. This article was mainly has made the quite detailed introduction to this software server end design, and has carried on the preliminary development to the server end. But the client side design has many needs to consummate. The client side is to the user the use, from convenient and on artistic, but also has the place which many needs to consummate. Moreover, as a result of the time relationship, the client side also has a function not pletely. If must make this system to bee a practical application system and in the work the practical application, but must the next time carry on the design again. Keyword: socket client server The work chats 本科生畢業(yè)設(shè)計(jì)(論文) 目 錄 第一章 概述 ...................................................... 1 選題來源及意義 ........................................................ 1 選題來源 ............................................................ 1 選題意義 ............................................................ 1 任務(wù)、要求及問題提出 .................................................. 1 任務(wù)、要求 .......................................................... 1 問題提出 ............................................................ 2 國內(nèi)外發(fā)展概況 ........................................................ 2 國內(nèi)外發(fā)展概況 ...................................................... 2 發(fā)展趨勢 ............................................................ 3 第二章 設(shè)計(jì)原理和過程 ............................................. 5 用戶需求分析 .......................................................... 5 設(shè)計(jì)原理概述 .......................................................... 5 系統(tǒng)模塊設(shè)計(jì) .......................................................... 6 服務(wù)器數(shù)據(jù)庫設(shè)計(jì) ...................................................... 8 客戶 /服務(wù)器程序設(shè)計(jì) ................................................... 9 TCP/IP 協(xié)議 .......................................................... 11 第三章 詳細(xì)設(shè)計(jì) .................................................. 14 類設(shè)計(jì)總體結(jié)構(gòu) ....................................................... 14 服務(wù)器端底層通訊類設(shè)計(jì) ............................................... 15 客戶端底層通訊類設(shè)計(jì) ................................................. 16 客戶 /服務(wù)器間通訊數(shù)據(jù)類設(shè)計(jì) .......................................... 17 服務(wù)器應(yīng)用程序類設(shè)計(jì) ................................................. 17 客戶端應(yīng)用程序類設(shè)計(jì) ................................................. 18 第四章 系統(tǒng)實(shí)現(xiàn) .................................................. 21 系統(tǒng)環(huán)境 ............................................................. 21 系統(tǒng)軟硬環(huán)境 ....................................................... 21 系統(tǒng)安裝說明 ....................................................... 21 系統(tǒng)運(yùn)行說明 ....................................................... 22 系統(tǒng)使用說明 ....................................................... 24 具體實(shí)現(xiàn) ............................................................. 24 登錄模塊 ........................................................... 24 查找用戶模塊 ....................................................... 24 本科生畢業(yè)設(shè)計(jì)(論文) 查看在線用戶模塊 ................................................... 26 發(fā)群體消息模塊 ..................................................... 26 系統(tǒng)參數(shù)模塊 ....................................................... 27 個(gè)人設(shè)定模塊 ....................................................... 28 正常聊天模塊 ....................................................... 28 系統(tǒng)測試 ............................................................. 29 結(jié) 論 ........................................................... 31 謝 辭 .............................................. 錯(cuò)誤 !未定義書簽。 參考文獻(xiàn) ......................................................... 33 附 錄 ........................................................... 34 本科生畢業(yè)設(shè)計(jì)(論文) 1 第一章 概述 選題來源及 意義 來源 在網(wǎng)絡(luò)無所不在的今天, 在 Inter 上,有 icq,oicq,ticq 等網(wǎng)絡(luò)聊天軟件,極大程度上方便了處于在世界各地的友人之間的相互聯(lián)系,也使世界好象一下子縮小了,不管你在哪里,只要你上了網(wǎng),打開這些軟件,就可以給你的朋友發(fā)信息,不管對方是否也同時(shí)在線,只要知道他有號碼。 本文討論基于 TCP/IP 通信開發(fā)聊天程序的關(guān)鍵技術(shù) ,重點(diǎn)討論 面向?qū)ο蠓椒?以及聊天程序的實(shí)現(xiàn)方法 ,并給出了相應(yīng)的 VC++代碼 . 網(wǎng)絡(luò)聊天軟件在國外的有 icq 等,在國內(nèi)的主要有騰訊的 Oicq,還有 Ticq,OmO 和一些在網(wǎng)頁上的即時(shí)通訊工具,像 Chinaren 網(wǎng)站上的 WebMaster 等等,都做得即美觀,且功能強(qiáng)大, Oicq 現(xiàn)在擁有非常大的用戶群。 現(xiàn)在也有很多,在網(wǎng)絡(luò)上不使用服務(wù)器的通訊軟件,這種軟件小巧且方便,也能解決一部分問題。但是有服務(wù)器的通訊軟件,有著不可比擬的優(yōu)勢:可以發(fā)送離線