資源描述:
《畢業(yè)設(shè)計(jì)(論文)-基于udp的聊天工具》由會(huì)員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在行業(yè)資料-天天文庫(kù)。
1、摘要隨著網(wǎng)絡(luò)技術(shù)的發(fā)展及人們生活的需求,網(wǎng)絡(luò)聊天已越來(lái)越受到人們的青睞。網(wǎng)絡(luò)聊天已經(jīng)成為人們工作生活中傳遞信息、交流感情的重要工具,給人們帶來(lái)了很大的方便。本課題是開發(fā)一個(gè)基于UDP的局域網(wǎng)聊天系統(tǒng),運(yùn)用軟件工程的設(shè)計(jì)流程,綜合運(yùn)用數(shù)據(jù)庫(kù)編程技術(shù)、Windows程序設(shè)計(jì)技術(shù)、網(wǎng)絡(luò)通訊技術(shù),以VisualC++6.0作為系統(tǒng)前臺(tái)應(yīng)用程序開發(fā)工具,MySQL和BerkeleyDB作為后臺(tái)數(shù)據(jù)庫(kù)管理系統(tǒng),通過(guò)MySQL自帶的API使兩者進(jìn)行連接從而進(jìn)行軟件開發(fā)。此網(wǎng)絡(luò)聊天工具采用客戶端/服務(wù)器(C/S)模式,客戶端采用UDP與服務(wù)器連
2、接,客戶端與客戶端之間通過(guò)UDP互相通訊。服務(wù)器端具有服務(wù)器端口設(shè)置,維護(hù)客戶端個(gè)人信息,記錄客戶端狀態(tài),分配賬號(hào)等功能;客戶端具有服務(wù)器地址及端口設(shè)置,用戶注冊(cè),用戶登陸,添加好友和刪除好友,查看好友信息,給好友發(fā)送消息,簡(jiǎn)單文件傳輸?shù)裙δ堋_m用于局域網(wǎng)使用的網(wǎng)絡(luò)聊天工具,其操作簡(jiǎn)單,靈活性好,運(yùn)行也比較穩(wěn)定。關(guān)鍵詞:網(wǎng)絡(luò)通訊;客戶端/服務(wù)器模型;用戶數(shù)據(jù)報(bào)協(xié)議;套接字ABSTRACTWiththedevelopmentofnetworkingtechnologyandthelivingdemandofpeople.chatt
3、ingonnetworkismoreandmoreacceptablebypeople.Internetchathasbecomeanimportanttooltotransmissionofinformationandexchangeoffeelingsinourlife,itbringsagreatconvenience.ThistopicisgoingtotalkaboutthattodevelopthelocalareanetworkchatsystemwhichbasedonUDP.Thislocalareanetwo
4、rkchatsystemusingthedesignstreamofthesoftwareproject,thetechnologyofthedatabaseprogramming,Windowsprogramdesigningtechniqueandthenetworkcommunicationtechnology,makesVisualC++6.0asthefrontapplicationdesigntool,MySQLandBerkeleyDBareusedasthebackgroundDBMS(thedatabasema
5、nagementsystem),ThetwoofthembeingconnectedbyAPIwhichisembeddedinMySQLtodevelopthesoftware.Thisnetworkchattooladoptsclient/servermechanism(C/S)andtheclientconnecttheserverusingUDP,andtheycommunicateeachotherbyUDP.Theserverhastheabilitysettingtheportoftheserver,mainten
6、ancetheclients’personalinformation,recordingtheclients’status,distributingaccountnumbersandsoon;TheclienthavetheabilitysettingtheIPaddressandportoftheserver,userregister,userlogin,addingfriendsanddeletingfriends,findingandlookingtheuser’sinformation,sendingmessagetof
7、riends,simplefiletranslation,timingnoting,timingshuttingthecomputerandsoon.Itadaptstousethenetworkchattingtoolinlocalinternet,it’soperationissimple,theflexibilityisgoodandmovementisalsostable.KEYWORDS:networkcommunication,client/servermechanism,UDP,SOCKET目錄第1章緒論.....
8、...................................................11.1項(xiàng)目背景.......................................................11.2局域網(wǎng)聊天系統(tǒng)的意義及特點(diǎn)