【正文】
基于 socket 的網(wǎng)絡(luò)聊天系統(tǒng) 學(xué) 院: 計(jì)算機(jī)學(xué)院 專 業(yè): 計(jì)算機(jī)科學(xué)與技術(shù) 姓 名: 蘇國(guó)東 學(xué) 號(hào): 100202121010 指導(dǎo)老師: 雷劍剛 職 稱: 講師 中 國(guó)珠海 二○一四 年 四 月 北京理工大學(xué)珠海學(xué)院 2021 屆畢業(yè)設(shè)計(jì)(論文) 誠(chéng)信承諾書 本人鄭重承諾: 本人承諾呈交的畢業(yè)設(shè)計(jì)《計(jì)算機(jī)科學(xué)與技術(shù)》是在指導(dǎo)教師的指導(dǎo)下,獨(dú)立開展研究取得的成果,文中引用他人的觀點(diǎn)和材料,均在文后按順序列出其參考文獻(xiàn),設(shè)計(jì)使用的數(shù)據(jù)真實(shí)可靠。 本人簽名: 日期: 年 月 日 北京理工大學(xué)珠海學(xué)院 2021 屆畢業(yè)設(shè)計(jì)(論文) 基于 socket 的網(wǎng)絡(luò)聊天系統(tǒng) 摘要 隨著科學(xué)技術(shù)的迅速提高,計(jì)算機(jī)網(wǎng)絡(luò)得到了飛速的發(fā)展,而各種基于網(wǎng)絡(luò)的應(yīng)用程序也隨之誕生,比如基于互聯(lián)網(wǎng)的信息發(fā)布,通 信,數(shù)據(jù)共享等等。局域網(wǎng)技術(shù)作為人們?nèi)粘I钪斜夭豢缮俚牟糠滞瑯拥玫搅藦V泛的應(yīng)用,人們通過局域網(wǎng)連接 INTERNET 進(jìn)行數(shù)據(jù)傳輸及交換。因此開發(fā)一個(gè)局域網(wǎng)的即時(shí)通信工具是非常有必要的。本文圍繞這個(gè)中心并進(jìn)行了更為合理的設(shè)計(jì)在 WINDOWS 平臺(tái)上進(jìn)行了實(shí)現(xiàn)。將客戶端與服務(wù) 器 端分開, 用多線程實(shí)現(xiàn)不同的并行任務(wù)。能夠滿足一般用戶最基本的要求,特點(diǎn)是簡(jiǎn)單方便,功能齊全,拓展性強(qiáng)。 關(guān)鍵詞 : 局域網(wǎng) 。 即時(shí)通信 。 客戶端 。 服務(wù)端 。 多線程 北京理工大學(xué)珠海學(xué)院 2021 屆畢業(yè)設(shè)計(jì)(論文) LAN Instant Messaging System Abstract Along with the highspeed development of the science and technology, the technology based on puter work improved quickly. Various kinds of applications based on work was born, like information releasing, data sharing ... .The LAN technology as an essential part of our daily life are also widely used . People transfer and exchange data through LAN to connect with Inter. So it’s very necessary to develop a software which based on instantmessage in LAN. So I make a new design, and implement it on windows platform. In my implementation the client and the server were separated in one program with multi thread mechanism and had a good GUI. It can satisfier most people’s demands. It was very easy to use and the function is very realizable. At last, it is also easy for expanding. Key words LAN。 Instant Messaging。 Client。 Server。 Multi thread 北京理工大學(xué)珠海學(xué)院 2021 屆畢業(yè)設(shè)計(jì)(論文) 目 錄 1. 引言 ..................................................................................................................................................................................................1 課題背景及意義 .....................................................................................................................................................................1 課題現(xiàn)狀 ...................................................................................................................................................................................1 研究目標(biāo) ...................................................................................................................................................................................2 開發(fā)平臺(tái)與技術(shù)的選擇及介紹 ...........................................................................................................................................2 開發(fā)環(huán)境的介紹 ............................................................................................................................................................2 WINDOWS SOCKETS 網(wǎng)絡(luò)編程接口概述 .....................................................................................................................3 開發(fā)平臺(tái)簡(jiǎn)介 ....................................................................................................................................................3 access 數(shù)據(jù)庫 ...............................................................................................................................................................4 2. 需求分析及可行性研究 ...............................................................................................................................................................5 系統(tǒng)分析概況 ..........................................................................................................................................................................5 系統(tǒng)需求分析 ..........................................................................................................................................................................5 功能要求 .........................................................................................................................................................................6 性能要求 .........................................................................................................................................................................6 系統(tǒng)可行性研究 .....................................................................................................................................................................7 技術(shù) 可行性 .....................................................................................................................................................................7 經(jīng)濟(jì)可行性 .....................................................................................................................................................................7 營(yíng)運(yùn)可行性 .....................................................................................................................................................................7 3. 系統(tǒng)設(shè)計(jì)及編碼實(shí)現(xiàn) ...................................................................................................................................................................8 系統(tǒng)基礎(chǔ)認(rèn)知 ..........................................................................................................................................................................8 ......................................................................................................................................................................8 TCP/IP 協(xié)議 .................................................................................................................................................................13 Sockets ...................................................................................................................