您好,欢迎访问三七文档
当前位置:首页 > 商业/管理/HR > 广告经营 > 基于Socket网络聊天系统的设计与实现
摘要随着Internet的飞速发展,网络聊天以其操作简单、方便快捷、私密性好等优点已经迅速发展成为最普遍的网络交流方式之一,越来越受到人们的青睐,丰富了人们的网上生活。开发并实现具有自身特色的网络聊天系统具有实际应用价值。本网络聊天系统基于Java应用程序设计,以Client/Server为开发模式,以Eclipse为开发环境,以MySQL为后台数据库,利用JDBC连接数据库。系统主要包括服务器模块和客户端模块,服务器模块能够对客户端发来的用户信息进行匹配、读取和转发;客户端模块能够进行注册、登录、聊天和文件传输。系统不但实现了点到点的聊天,还利用Java提供的Socket类和多线程功能,在单个程序中同时运行多个不同进程,从而实现多点对多点的聊天。总之,该聊天系统具有开放性,实时性,多话题交错等特点,方便了人们网上交流。【关键词】网络聊天服务器模块客户端模块SocketABSTRACTWiththerapiddevelopmentofInternet,networkchatwithitssimpleoperation,convenientandgondprivacyhasquicklybecomethemostpopularwayofcommunicationnetworks,moreandmorepeoplelikeit,enrichpeople'sonlinelives.DevelopmentandRealizationofthenetworkchatsystemwithitsowncharacteristicsandhaspracticalapplicationvalue.TheInternetchatsystemisbasedonJavaapplication,designedbyClient/Serverasthedevelopmentofmodels,asEclipsedevelopmentenvironment,MySQLasthebackenddatabase,andusingJDBCtoconnectdatabase.Thesystemincludesservermodulesandclientmodules,servermodulecanmatchusers'data,readandforwardtheinformationwhichissentbyclient;clientmoduletoregist,login,chatandfiletransfer.Thesystemnotonlyachievespeer-to-peerchat,butalsousetheJavaprovidsSocketclassandmulti-threadingcapabilities,inasingleprogramrundifferentprocessesatthesametime,inordertoachievemultipointchat.Inshort,thechatsystemisopen,real-timeandmulti-topicstaggeredfeatures,easyforpeopletocommunicateonline.【Keywords】NetworkChatClientModuleServerModuleSocket目录前言............................................................................................................................1第一章系统开发工具简介........................................................................................2第一节客户机/服务器模型.................................................................................2第二节JAVA简介................................................................................................3第三节Socket简介...............................................................................................4第四节Eclipse简介..............................................................................................7第五节MySQL简介............................................................................................8本章小结.................................................................................................................9第二章系统分析......................................................................................................10第一节可行性分析.............................................................................................10第二节业务流分析.............................................................................................11第三节需求分析.................................................................................................11一、系统设计目标........................................................................................11二、系统功能需求........................................................................................12本章小结...............................................................................................................13第三章系统概要设计..............................................................................................14第一节系统总体描述.........................................................................................14第二节模块设计.................................................................................................15第三节数据库设计.............................................................................................16一、设计原则..............................................................................................16二、具体步骤..............................................................................................17本章小结...............................................................................................................18第四章系统实现......................................................................................................20第一节数据库模块实现.....................................................................................20一、数据流图..............................................................................................20二、数据库的连接........................................................................................20第二节注册模块实现.........................................................................................21第三节登录模块实现.........................................................................................23第四节聊天模块实现.........................................................................................24第五节文件传输模块实现.................................................................................25本章小结...............................................................................................................27第五章系统测试......................................................................................................28第一节服务器模块测试.....................................................................................28第二节注册模块测试.........................................................................................29第三节登录模块测试...............................
本文标题:基于Socket网络聊天系统的设计与实现
链接地址:https://www.777doc.com/doc-5649344 .html