畢業(yè)論文-基于udp的局域網(wǎng)聊天系統(tǒng).doc
畢業(yè)論文-基于udp的局域網(wǎng)聊天系統(tǒng),畢業(yè)論文-基于udp的局域網(wǎng)聊天系統(tǒng)摘 要隨著網(wǎng)絡技術的發(fā)展及人們生活的需求,網(wǎng)絡聊天已越來越受到人們的青睞 。網(wǎng)絡聊天已經(jīng)成為人們工作生活中傳遞信息、交流感情的重要工具,給人們帶來了很大的方便。本課題是開發(fā)一個基于udp的局域網(wǎng)聊天系統(tǒng),運用軟件工程的設計流程,綜合運用數(shù)據(jù)庫編程技術、windows程序設計技術、網(wǎng)絡...


內(nèi)容介紹
此文檔由會員 antilogy 發(fā)布畢業(yè)論文-基于UDP的局域網(wǎng)聊天系統(tǒng)
摘 要
隨著網(wǎng)絡技術的發(fā)展及人們生活的需求,網(wǎng)絡聊天已越來越受到人們的青睞 。網(wǎng)絡聊天已經(jīng)成為人們工作生活中傳遞信息、交流感情的重要工具,給人們帶來了很大的方便。
本課題是開發(fā)一個基于UDP的局域網(wǎng)聊天系統(tǒng),運用軟件工程的設計流程,綜合運用數(shù)據(jù)庫編程技術、Windows程序設計技術、網(wǎng)絡通訊技術,以Visual C++ 6.0作為系統(tǒng)前臺應用程序開發(fā)工具,MySQL和Berkeley DB作為后臺數(shù)據(jù)庫管理系統(tǒng),通過MySQL自帶的API使兩者進行連接從而進行軟件開發(fā)。此網(wǎng)絡聊天工具采用客戶端/服務器(C/S)模式,客戶端采用UDP與服務器連接,客戶端與客戶端之間通過UDP互相通訊。服務器端具有服務器端口設置,維護客戶端個人信息,記錄客戶端狀態(tài),分配賬號等功能;客戶端具有服務器地址及端口設置,用戶注冊,用戶登陸,添加好友和刪除好友,查看好友信息,給好友發(fā)送消息,簡單文件傳輸?shù)裙δ堋_m用于局域網(wǎng)使用的網(wǎng)絡聊天工具,其操作簡單,靈活性好,運行也比較穩(wěn)定。
關鍵詞:網(wǎng)絡通訊;客戶端/服務器模型;用戶數(shù)據(jù)報協(xié)議;套接字
ABSTRACT
With the development of networking technology and the living demand of people. chatting on network is more and more acceptable by people. Internet chat has become an important tool to transmission of information and exchange of feelings in our life, it brings a great convenience.
This topic is going to talk about that to develop the local area network chat system which based on UDP. This local area network chat system using the design stream of the software project, the technology of the database programming, Windows program designing technique and the network communication technology, makes Visual C++6.0 as the front application design tool, MySQL and Berkeley DB are used as the background DBMS( the database management system ), The two of them being connected by API which is embedded in MySQL to develop the software. This network chat tool adopts client/server mechanism(C/S) and the client connect the server using UDP, and they communicate each other by UDP. The server has the ability setting the port of the server, maintenance the clients’ personal information, recording the clients’ status, distributing account numbers and so on; The client have the ability setting the IP address and port of the server, user register, user login, adding friends and deleting friends, finding and looking the user’s information, sending message to friends, simple file translation, timing noting ,timing shutting the computer and so on. It adapts to use the network chatting tool in local internet, it’s operation is simple , the flexibility is good and movement is also stable.
KEY WORDS: network communication, client/server mechanism, UDP, SOCKET
目 錄
第1章 緒 論 1
1.1 項目背景 1
1.2 局域網(wǎng)聊天系統(tǒng)的意義及特點 1
第2章 需求分析 3
2.1 功能需求 3
2.2 數(shù)據(jù)流 5
2.3 性能需求 6
第3章 系統(tǒng)總體設計 7
3.1 相關開發(fā)技術的原理性說明 7
3.1.1 UDP協(xié)議介紹 7
3.1.2 Socket介紹 7
3.1.3客戶/服務器程序的介紹 12
3.2 開發(fā)環(huán)境的選擇 13
3.2.1 系統(tǒng)開發(fā)工具的選擇 13
3.2.2 數(shù)據(jù)庫系統(tǒng)的選擇 13
3.3 技術選取及搭配 15
3.4 數(shù)據(jù)庫的設計 15
第4章 系統(tǒng)詳細設計及實現(xiàn) 18
4.1服務器端的設計 18
4.1.1服務器端的構(gòu)成 19
4.1.2服務器端的主要功能實現(xiàn) 20
4.2客戶端的設計 27
4.3 界面庫的實現(xiàn) 32
第5章 結(jié)論與展望 36
致 謝 37
參 考 文 獻 38