基于winsock的網(wǎng)絡(luò)聊天軟件設(shè)計(jì).doc
約38頁(yè)DOC格式手機(jī)打開(kāi)展開(kāi)
基于winsock的網(wǎng)絡(luò)聊天軟件設(shè)計(jì),基于winsock的網(wǎng)絡(luò)聊天軟件設(shè)計(jì)頁(yè)數(shù):38字?jǐn)?shù):14569摘要隨著計(jì)算機(jī)網(wǎng)絡(luò)技術(shù)的飛速發(fā)展,網(wǎng)絡(luò)技術(shù)越來(lái)越受到人們的重視,它已逐漸滲入我們生活各個(gè)層面。人們也越來(lái)越重視網(wǎng)絡(luò)的應(yīng)用,特別是在及時(shí)性通訊發(fā)面,相對(duì)于e-mail,即時(shí)聊天擁有具有雙向互動(dòng)性和即時(shí)性,目前都有很多的流行即時(shí)聊天軟件,如qq,msn,新浪uc...


內(nèi)容介紹
此文檔由會(huì)員 Facebook 發(fā)布
基于Winsock的網(wǎng)絡(luò)聊天軟件設(shè)計(jì)
頁(yè)數(shù):38 字?jǐn)?shù):14569
摘 要
隨著計(jì)算機(jī)網(wǎng)絡(luò)技術(shù)的飛速發(fā)展,網(wǎng)絡(luò)技術(shù)越來(lái)越受到人們的重視,它已逐漸滲入我們生活各個(gè)層面。人們也越來(lái)越重視網(wǎng)絡(luò)的應(yīng)用,特別是在及時(shí)性通訊發(fā)面,相對(duì)于E-MAIL,即時(shí)聊天擁有具有雙向互動(dòng)性和即時(shí)性,目前都有很多的流行即時(shí)聊天軟件,如QQ,MSN,新浪UC,網(wǎng)易POPO,YAHOO通等,為人們的通信提供了極大的方便。但是這些都是互聯(lián)網(wǎng)中實(shí)現(xiàn)的,而局域網(wǎng)則有很大的限制。
本文對(duì)局域網(wǎng)聊天編程技術(shù)進(jìn)行了簡(jiǎn)要分析,研究了WinSock編程通信機(jī)制,如winpcap、原始套接字。文中首先分析了TCP/IP和網(wǎng)絡(luò)聊天軟件的原理,并介紹了C/S工作模式,然后研究了WinSock編程通信機(jī)制。本文的目標(biāo)是基于WinSock技術(shù)實(shí)現(xiàn)一個(gè)網(wǎng)絡(luò)聊天通信程序,其工作機(jī)制模仿即時(shí)通信軟件的基本功能,包括申請(qǐng)帳號(hào),登陸,密碼驗(yàn)證,聊天室,私聊等。采用TCP/IP原理,分別為客戶端和服務(wù)器端完成基本數(shù)據(jù)配置,實(shí)現(xiàn)網(wǎng)絡(luò)聊天功能。在設(shè)計(jì)過(guò)程中,主要采用VC++6.0編程環(huán)境,ACCESS數(shù)據(jù)庫(kù)環(huán)境,使用C++語(yǔ)言進(jìn)行程序的編寫(xiě),程序通過(guò)調(diào)試運(yùn)行并且經(jīng)過(guò)完善后,基本實(shí)現(xiàn)了設(shè)計(jì)的目標(biāo),能很好地在局域網(wǎng)環(huán)境實(shí)現(xiàn)即時(shí)聊天。
【關(guān)鍵詞】C++語(yǔ)言 Winsock TCP/IP 聊天軟件
ABSTRACT
With the rapid development of computer network technology, more and more attention take to network technology, it has gradually infiltrated all aspects of our lives. There is also increasing emphasis on network applications, particularly in the timeliness of communications to lead the way, as opposed to E-MAIL, IM has a two-way interactivity and immediacy, there is now a lot of popular instant messaging software such as QQ, MSN , Sina UC, NetEase POPO, YAHOO-talk, for people to communications provided great convenience. But these are implemented in the Internet, and LAN have considerable limitations.
This programming technique on the LAN chat a brief analysis of the WinSock programming communication mechanisms, such as Winpcap, raw socket. The paper first analyzes the TCP / IP and Internet chat software, theory, and introduced the C/S mode, then the communication mechanism of the WinSock programming. This goal is a network technology based on WinSock chat communication program, the working mechanism of imitating real-time communication software's basic features, including an account, login, password authentication, chat rooms, private chat and so on. Using TCP / IP Principles, namely client and server-side data to complete the basic configuration for network chat. In the design process, mainly in VC++6.0 programming environment, ACCESS database environment, using C++ language program writing, debugging and running programs, and through the perfection, the basic design to achieve the goal, to achieve well in the LAN environment real-time chat.
【Key words】C++ Winsock TCP/IP IM
目 錄
摘 要 I
ABSTRACT II
目 錄 III
緒 論 1
第一章 即時(shí)通信軟件相關(guān)技術(shù) 3
第一節(jié) TCP/IP相關(guān)原理 3
一、TCP/IP相關(guān)原理 3
二、TCP建立 3
三、TCP傳輸原理 4
第二節(jié) Socket套接字 5
一、Socket 概述 5
二、Socket通信模式 6
第三節(jié) MFC微軟基礎(chǔ)類 8
一、WinSock API 8
二、MFC框架 9
第二章 軟件需求分析及總體設(shè)計(jì) 11
第一節(jié) 需求分析概述 11
一、功能要求 11
二、性能要求 11
三、測(cè)試環(huán)境規(guī)定 12
四、系統(tǒng)流程圖 12
五、可行性研究 14
第二節(jié) 總體設(shè)計(jì) 15
一、體系結(jié)構(gòu)模型 15
二、功能模塊設(shè)計(jì) 15
三、數(shù)據(jù)庫(kù)設(shè)計(jì) 17
第三章 軟件詳細(xì)設(shè)計(jì)及代碼實(shí)現(xiàn) 18
第一節(jié) 用戶界面設(shè)計(jì) 18
第二節(jié) 具體代碼實(shí)現(xiàn) 22
一、通信協(xié)議設(shè)計(jì) 22
二、自定義類的設(shè)計(jì) 22
三、軟件內(nèi)部運(yùn)行流程圖 23
第四章 測(cè)試 30
第一節(jié) 白盒測(cè)試 30
第二節(jié) 黑盒測(cè)試 30
結(jié) 論 32
致 謝 33
參考文獻(xiàn) 34
頁(yè)數(shù):38 字?jǐn)?shù):14569
摘 要
隨著計(jì)算機(jī)網(wǎng)絡(luò)技術(shù)的飛速發(fā)展,網(wǎng)絡(luò)技術(shù)越來(lái)越受到人們的重視,它已逐漸滲入我們生活各個(gè)層面。人們也越來(lái)越重視網(wǎng)絡(luò)的應(yīng)用,特別是在及時(shí)性通訊發(fā)面,相對(duì)于E-MAIL,即時(shí)聊天擁有具有雙向互動(dòng)性和即時(shí)性,目前都有很多的流行即時(shí)聊天軟件,如QQ,MSN,新浪UC,網(wǎng)易POPO,YAHOO通等,為人們的通信提供了極大的方便。但是這些都是互聯(lián)網(wǎng)中實(shí)現(xiàn)的,而局域網(wǎng)則有很大的限制。
本文對(duì)局域網(wǎng)聊天編程技術(shù)進(jìn)行了簡(jiǎn)要分析,研究了WinSock編程通信機(jī)制,如winpcap、原始套接字。文中首先分析了TCP/IP和網(wǎng)絡(luò)聊天軟件的原理,并介紹了C/S工作模式,然后研究了WinSock編程通信機(jī)制。本文的目標(biāo)是基于WinSock技術(shù)實(shí)現(xiàn)一個(gè)網(wǎng)絡(luò)聊天通信程序,其工作機(jī)制模仿即時(shí)通信軟件的基本功能,包括申請(qǐng)帳號(hào),登陸,密碼驗(yàn)證,聊天室,私聊等。采用TCP/IP原理,分別為客戶端和服務(wù)器端完成基本數(shù)據(jù)配置,實(shí)現(xiàn)網(wǎng)絡(luò)聊天功能。在設(shè)計(jì)過(guò)程中,主要采用VC++6.0編程環(huán)境,ACCESS數(shù)據(jù)庫(kù)環(huán)境,使用C++語(yǔ)言進(jìn)行程序的編寫(xiě),程序通過(guò)調(diào)試運(yùn)行并且經(jīng)過(guò)完善后,基本實(shí)現(xiàn)了設(shè)計(jì)的目標(biāo),能很好地在局域網(wǎng)環(huán)境實(shí)現(xiàn)即時(shí)聊天。
【關(guān)鍵詞】C++語(yǔ)言 Winsock TCP/IP 聊天軟件
ABSTRACT
With the rapid development of computer network technology, more and more attention take to network technology, it has gradually infiltrated all aspects of our lives. There is also increasing emphasis on network applications, particularly in the timeliness of communications to lead the way, as opposed to E-MAIL, IM has a two-way interactivity and immediacy, there is now a lot of popular instant messaging software such as QQ, MSN , Sina UC, NetEase POPO, YAHOO-talk, for people to communications provided great convenience. But these are implemented in the Internet, and LAN have considerable limitations.
This programming technique on the LAN chat a brief analysis of the WinSock programming communication mechanisms, such as Winpcap, raw socket. The paper first analyzes the TCP / IP and Internet chat software, theory, and introduced the C/S mode, then the communication mechanism of the WinSock programming. This goal is a network technology based on WinSock chat communication program, the working mechanism of imitating real-time communication software's basic features, including an account, login, password authentication, chat rooms, private chat and so on. Using TCP / IP Principles, namely client and server-side data to complete the basic configuration for network chat. In the design process, mainly in VC++6.0 programming environment, ACCESS database environment, using C++ language program writing, debugging and running programs, and through the perfection, the basic design to achieve the goal, to achieve well in the LAN environment real-time chat.
【Key words】C++ Winsock TCP/IP IM
目 錄
摘 要 I
ABSTRACT II
目 錄 III
緒 論 1
第一章 即時(shí)通信軟件相關(guān)技術(shù) 3
第一節(jié) TCP/IP相關(guān)原理 3
一、TCP/IP相關(guān)原理 3
二、TCP建立 3
三、TCP傳輸原理 4
第二節(jié) Socket套接字 5
一、Socket 概述 5
二、Socket通信模式 6
第三節(jié) MFC微軟基礎(chǔ)類 8
一、WinSock API 8
二、MFC框架 9
第二章 軟件需求分析及總體設(shè)計(jì) 11
第一節(jié) 需求分析概述 11
一、功能要求 11
二、性能要求 11
三、測(cè)試環(huán)境規(guī)定 12
四、系統(tǒng)流程圖 12
五、可行性研究 14
第二節(jié) 總體設(shè)計(jì) 15
一、體系結(jié)構(gòu)模型 15
二、功能模塊設(shè)計(jì) 15
三、數(shù)據(jù)庫(kù)設(shè)計(jì) 17
第三章 軟件詳細(xì)設(shè)計(jì)及代碼實(shí)現(xiàn) 18
第一節(jié) 用戶界面設(shè)計(jì) 18
第二節(jié) 具體代碼實(shí)現(xiàn) 22
一、通信協(xié)議設(shè)計(jì) 22
二、自定義類的設(shè)計(jì) 22
三、軟件內(nèi)部運(yùn)行流程圖 23
第四章 測(cè)試 30
第一節(jié) 白盒測(cè)試 30
第二節(jié) 黑盒測(cè)試 30
結(jié) 論 32
致 謝 33
參考文獻(xiàn) 34
TA們正在看...
- 淺談青春期學(xué)生的特點(diǎn)及教育方法.doc
- 淺談靜脈留置針發(fā)生堵管的原因及預(yù)防對(duì)策綜述.doc
- 淺談靜脈輸液中存在的護(hù)理問(wèn)題.doc
- 淺談非正常戶認(rèn)定的風(fēng)險(xiǎn)與防范.doc
- 淺談非洲特色旅游資源開(kāi)發(fā)。.doc
- 淺談韋伯官僚制組織理論.doc
- 淺談音樂(lè)教學(xué)對(duì)小學(xué)生情緒的調(diào)節(jié).doc
- 淺談音樂(lè)課堂中的有效提問(wèn).doc
- 淺談?lì)I(lǐng)導(dǎo)與下屬溝通的障礙及對(duì)策.doc
- 淺談?lì)I(lǐng)導(dǎo)干部如何帶好隊(duì)伍.doc