【正文】
寂寞無助的 “ 亞細(xì)亞的孤兒 ” 們忽然發(fā)現(xiàn)了這一巨大的狂歡場(chǎng)所,更有甚于電子游戲帶給他們的新奇和喜悅。然而這并不是說人們不需要聊天提供的享受。自從我們順應(yīng)現(xiàn)代工業(yè)的潮流,從平房搬入樓房之后,在享受自動(dòng)的水、電、煤氣之時(shí),我們也失去了舊日街坊鄰里聚在一起 群聚而談的熱鬧和溫情。如果這個(gè)軟件做得比較成功的話,能為 網(wǎng)絡(luò) 通訊帶來一定的方便 的話 ,我就很滿足了??傊?,這種軟件在網(wǎng)絡(luò)上,還是有很大的用途的,為網(wǎng)絡(luò)上通訊,帶來極大的方便??梢员4嬗脩舻膫€(gè)人信息或介紹,供人查看。 現(xiàn)在也有很多,在網(wǎng)絡(luò)上不使用服務(wù)器的通訊軟件,這種軟件小巧且方便,也能解決一部分問題。 參考文獻(xiàn) ......................................................... 33 附 錄 ........................................................... 34 本科生畢業(yè)設(shè)計(jì)(論文) 1 第一章 概述 選題來源及 意義 來源 在網(wǎng)絡(luò)無所不在的今天, 在 Inter 上,有 icq,oicq,ticq 等網(wǎng)絡(luò)聊天軟件,極大程度上方便了處于在世界各地的友人之間的相互聯(lián)系,也使世界好象一下子縮小了,不管你在哪里,只要你上了網(wǎng),打開這些軟件,就可以給你的朋友發(fā)信息,不管對(duì)方是否也同時(shí)在線,只要知道他有號(hào)碼。如果要使本系統(tǒng)成為一個(gè)實(shí)際應(yīng)用系統(tǒng)并在網(wǎng)絡(luò)上實(shí)際應(yīng)用 ,還要再下一番功夫進(jìn)行設(shè)計(jì)??蛻舳耸墙o用戶使用的,從方便和美觀上,還都還有很多需要完善的地方。 本文主要是對(duì)本軟件服務(wù)器端的設(shè)計(jì)作了比較詳細(xì)的介紹,并對(duì)服務(wù)器端進(jìn)行了初步的開發(fā)。為方便測(cè)試,本程序采用 server(服務(wù)器端 )和 client(客戶端 )合一模式,使用簡(jiǎn)潔方便。本程序是一個(gè)基于 C/S模式的網(wǎng)絡(luò)聊天程序,主要用于測(cè)試面向連接的 socket編程技術(shù)。本科生畢業(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模型。本程序使用 Virtual C++。需要注意的是本程序 C/S端合一的模式和 服務(wù)器 地址 、服務(wù)器端口號(hào)固定以及自動(dòng)申請(qǐng) 用戶登陸 ID的設(shè)計(jì) 不 只為 了方便測(cè) 試,而且適宜商業(yè)化,但是 在商業(yè)化階段 還是 需要進(jìn)行改進(jìn) 。而客戶端的設(shè)計(jì)有很多都需要完善。而且,由于時(shí)間關(guān)系,客戶端還有些功能沒有完全。 關(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 國(guó)內(nèi)外發(fā)展概況 ........................................................ 2 國(guó)內(nèi)外發(fā)展概況 ...................................................... 2 發(fā)展趨勢(shì) ............................................................ 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)測(cè)試 ............................................................. 29 結(jié) 論 ........................................................... 31 謝 辭 ...................................