unix網絡編程--聊天系統(tǒng)的設計與實現(xiàn).doc
約42頁DOC格式手機打開展開
unix網絡編程--聊天系統(tǒng)的設計與實現(xiàn),unix網絡編程--聊天系統(tǒng)的設計與實現(xiàn)全文43頁約17000字論述翔實目 錄摘要iiiabstractiv引言v第一章 unix簡介11.1 發(fā)展歷史11.2 發(fā)展趨勢1第二章 背景知識介紹32.1 unix編程開發(fā)工具32.2 套接字簡介52.3socket編程的基本流程62.4bsd套接字基本函數(shù)介紹72.5 多...


內容介紹
此文檔由會員 癡狂少年 發(fā)布
UNIX網絡編程--聊天系統(tǒng)的設計與實現(xiàn)
全文43頁 約17000字 論述翔實
目 錄
摘 要 III
ABSTRACT IV
引 言 V
第一章 UNIX簡介 1
1.1 發(fā)展歷史 1
1.2 發(fā)展趨勢 1
第二章 背景知識介紹 3
2.1 UNIX編程開發(fā)工具 3
2.2 套接字簡介 5
2.3 SOCKET編程的基本流程 6
2.4 BSD套接字基本函數(shù)介紹 7
2.5 多路復用 13
第三章 系統(tǒng)開發(fā)過程 15
3.1 開發(fā)環(huán)境 15
3.2 需求分析 15
3.3 總體設計 19
3.4 服務器程序和客戶端程序的詳細設計與分析 22
第四章 程序有關說明 29
4.1 程序編譯和啟動方法 29
4.1 運行結果 29
4.4 系統(tǒng)調試情況 32
4.4.1 出現(xiàn)的問題 32
4.4.2 調試過程 33
結束語 35
參考文獻 36
致 謝 37
附 錄 38
摘 要
計算機網絡的迅速發(fā)展,對人類社會諸多領域產生了巨大的影響。在諸多支持網絡的操作系統(tǒng)中,UNIX以其優(yōu)秀的性能越來越引起人們的關注。而以UNIX為服務器的各種系統(tǒng)也應運而生。尤其是,隨著信息時代的來臨,人們之間愈來愈趨向于通過網絡來交流和傳遞信息。而聊天系統(tǒng)正是當前人們使用最多的中介。在這個平臺上,許多認識或不認識的人們彼此間能夠隨意的相互交流。因此,開發(fā)和架構這種平臺符合時代發(fā)展的需要。本次畢業(yè)設計的任務為分析UNIX網絡編程環(huán)境,并實現(xiàn)一個UNIX局域網的聊天系統(tǒng)。
論文首先對UNIX以及UNIX網絡編程環(huán)境作了一個介紹,然后詳細分析了BSD套接字函數(shù)族和多路復用的應用。最后記錄了聊天系統(tǒng)的開發(fā)和實現(xiàn)過程,從總體分析、模塊劃分到詳細設計,并在后面附了本人實現(xiàn)的C語言源代碼。
關鍵字: UNIX, 網絡編程,套接字,服務器,客戶端,聊天系統(tǒng)
Abstract
The rapid development of the computer networks has been making a great influence in many fields of human society. Among a great many networks operating systems, Unix is obtaining more and more attention from people by its excellent behavior. But as server each kind of system also arises at the historic moment
take UNIX. In particular, along with information age approaching, between the
people tend to increasingly in exchanges and the transmission information through the network. But chats the system is precisely the current people uses many intermediary,。In this platform, people each other which many understanding or did not know can at will mutual exchange. Therefore, the development and overhead construction this kind of platform conforms to the time need to develop. In this graduate design, our task is to develop a chat system based on a LAN with Unix as its operating system.
The paper first has made an introduction to UNIX as well as the UNIX network programming environment, then multianalysis BSD sleeve joint character function race and multiplexing application. Finally recorded chatted the system development and the realization process, from the overall analysis, the module divided to the detailed design, and has attached the C language source code in behind which myself realized.
Key words: Unix, network programming, socket, server, client, chat system
部分參考文獻
[7] 王強.UNIX中運用Socket的網絡編程[J].中國金融電腦.2002,25(12):57~60
[8] 羅海明.利用Socket在UNIX平臺下實現(xiàn)客戶服務器編程[J].安徽工業(yè)大學報.2003,20(1):52~57
[9] 彭嵐,周啟海.UNIX并發(fā)服務器及其幾種優(yōu)化改進方案[J].計算機應用.2004,24(4):47~49
[10]朱玉璽, 劉亞姝.基于Socket的局域網管理系統(tǒng)的設計與實現(xiàn)[J]. 佛山科學技術學院學報:自
然科學版.2004,022(001):37~40
全文43頁 約17000字 論述翔實
目 錄
摘 要 III
ABSTRACT IV
引 言 V
第一章 UNIX簡介 1
1.1 發(fā)展歷史 1
1.2 發(fā)展趨勢 1
第二章 背景知識介紹 3
2.1 UNIX編程開發(fā)工具 3
2.2 套接字簡介 5
2.3 SOCKET編程的基本流程 6
2.4 BSD套接字基本函數(shù)介紹 7
2.5 多路復用 13
第三章 系統(tǒng)開發(fā)過程 15
3.1 開發(fā)環(huán)境 15
3.2 需求分析 15
3.3 總體設計 19
3.4 服務器程序和客戶端程序的詳細設計與分析 22
第四章 程序有關說明 29
4.1 程序編譯和啟動方法 29
4.1 運行結果 29
4.4 系統(tǒng)調試情況 32
4.4.1 出現(xiàn)的問題 32
4.4.2 調試過程 33
結束語 35
參考文獻 36
致 謝 37
附 錄 38
摘 要
計算機網絡的迅速發(fā)展,對人類社會諸多領域產生了巨大的影響。在諸多支持網絡的操作系統(tǒng)中,UNIX以其優(yōu)秀的性能越來越引起人們的關注。而以UNIX為服務器的各種系統(tǒng)也應運而生。尤其是,隨著信息時代的來臨,人們之間愈來愈趨向于通過網絡來交流和傳遞信息。而聊天系統(tǒng)正是當前人們使用最多的中介。在這個平臺上,許多認識或不認識的人們彼此間能夠隨意的相互交流。因此,開發(fā)和架構這種平臺符合時代發(fā)展的需要。本次畢業(yè)設計的任務為分析UNIX網絡編程環(huán)境,并實現(xiàn)一個UNIX局域網的聊天系統(tǒng)。
論文首先對UNIX以及UNIX網絡編程環(huán)境作了一個介紹,然后詳細分析了BSD套接字函數(shù)族和多路復用的應用。最后記錄了聊天系統(tǒng)的開發(fā)和實現(xiàn)過程,從總體分析、模塊劃分到詳細設計,并在后面附了本人實現(xiàn)的C語言源代碼。
關鍵字: UNIX, 網絡編程,套接字,服務器,客戶端,聊天系統(tǒng)
Abstract
The rapid development of the computer networks has been making a great influence in many fields of human society. Among a great many networks operating systems, Unix is obtaining more and more attention from people by its excellent behavior. But as server each kind of system also arises at the historic moment
take UNIX. In particular, along with information age approaching, between the
people tend to increasingly in exchanges and the transmission information through the network. But chats the system is precisely the current people uses many intermediary,。In this platform, people each other which many understanding or did not know can at will mutual exchange. Therefore, the development and overhead construction this kind of platform conforms to the time need to develop. In this graduate design, our task is to develop a chat system based on a LAN with Unix as its operating system.
The paper first has made an introduction to UNIX as well as the UNIX network programming environment, then multianalysis BSD sleeve joint character function race and multiplexing application. Finally recorded chatted the system development and the realization process, from the overall analysis, the module divided to the detailed design, and has attached the C language source code in behind which myself realized.
Key words: Unix, network programming, socket, server, client, chat system
部分參考文獻
[7] 王強.UNIX中運用Socket的網絡編程[J].中國金融電腦.2002,25(12):57~60
[8] 羅海明.利用Socket在UNIX平臺下實現(xiàn)客戶服務器編程[J].安徽工業(yè)大學報.2003,20(1):52~57
[9] 彭嵐,周啟海.UNIX并發(fā)服務器及其幾種優(yōu)化改進方案[J].計算機應用.2004,24(4):47~49
[10]朱玉璽, 劉亞姝.基于Socket的局域網管理系統(tǒng)的設計與實現(xiàn)[J]. 佛山科學技術學院學報:自
然科學版.2004,022(001):37~40