资源描述:
《毕业设计(论文)-基于udp的聊天工具》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、摘要随着网络技术的发展及人们生活的需求,网络聊天已越来越受到人们的青睐。网络聊天已经成为人们工作生活中传递信息、交流感情的重要工具,给人们带来了很大的方便。本课题是开发一个基于UDP的局域网聊天系统,运用软件工程的设计流程,综合运用数据库编程技术、Windows程序设计技术、网络通讯技术,以VisualC++6.0作为系统前台应用程序开发工具,MySQL和BerkeleyDB作为后台数据库管理系统,通过MySQL自带的API使两者进行连接从而进行软件开发。此网络聊天工具采用客户端/服务器(C/S)模式,客
2、户端采用UDP与服务器连接,客户端与客户端之间通过UDP互相通讯。服务器端具有服务器端口设置,维护客户端个人信息,记录客户端状态,分配账号等功能;客户端具有服务器地址及端口设置,用户注册,用户登陆,添加好友和删除好友,查看好友信息,给好友发送消息,简单文件传输等功能。适用于局域网使用的网络聊天工具,其操作简单,灵活性好,运行也比较稳定。关键词:网络通讯;客户端/服务器模型;用户数据报协议;套接字ABSTRACTWiththedevelopmentofnetworkingtechnologyandtheli
3、vingdemandofpeople.chattingonnetworkismoreandmoreacceptablebypeople.Internetchathasbecomeanimportanttooltotransmissionofinformationandexchangeoffeelingsinourlife,itbringsagreatconvenience.Thistopicisgoingtotalkaboutthattodevelopthelocalareanetworkchatsyst
4、emwhichbasedonUDP.Thislocalareanetworkchatsystemusingthedesignstreamofthesoftwareproject,thetechnologyofthedatabaseprogramming,Windowsprogramdesigningtechniqueandthenetworkcommunicationtechnology,makesVisualC++6.0asthefrontapplicationdesigntool,MySQLandBe
5、rkeleyDBareusedasthebackgroundDBMS(thedatabasemanagementsystem),ThetwoofthembeingconnectedbyAPIwhichisembeddedinMySQLtodevelopthesoftware.Thisnetworkchattooladoptsclient/servermechanism(C/S)andtheclientconnecttheserverusingUDP,andtheycommunicateeachotherb
6、yUDP.Theserverhastheabilitysettingtheportoftheserver,maintenancetheclients’personalinformation,recordingtheclients’status,distributingaccountnumbersandsoon;TheclienthavetheabilitysettingtheIPaddressandportoftheserver,userregister,userlogin,addingfriendsan
7、ddeletingfriends,findingandlookingtheuser’sinformation,sendingmessagetofriends,simplefiletranslation,timingnoting,timingshuttingthecomputerandsoon.Itadaptstousethenetworkchattingtoolinlocalinternet,it’soperationissimple,theflexibilityisgoodandmovementisal
8、sostable.KEYWORDS:networkcommunication,client/servermechanism,UDP,SOCKET目录第1章绪论........................................................11.1项目背景.......................................................11.2局域网聊天系统的意义及特点