下载

0下载券

加入VIP
  • 专属下载特权
  • 现金文档折扣购买
  • VIP免费专区
  • 千万文档免费下载

上传资料

关闭

关闭

关闭

封号提示

内容

首页 聊天软件系统设计与实现

聊天软件系统设计与实现.doc

聊天软件系统设计与实现

张涛
2012-11-16 0人阅读 举报 0 0 0 暂无简介

简介:本文档为《聊天软件系统设计与实现doc》,可适用于高等教育领域

蓝天工作室为您提供最优秀的计算机毕业设计论文解决方案客服QQ:QQ:聊天软件系统设计与实现计算机毕业设计成品与开发咨询QQ:摘要实时信息客服聊天软件(IM)可以不用考虑使用者的地点以及它们之间的距离。作为一种最常用的网络软件IM被看做是一种时尚的聊天工具它可以衍生出社会成员之间的新型社交关系。至今IM是一种在人类历史长河中最具影响的应用之一。如今商用企业与非盈利组织已经发行了成千上万种IM实时信息交流软件。同时一种新型的商业模式电子商务已经被越来越多的人所关注与接受这种模式是基于高端网络技术的。然而对于通常的商用实时信息的市场对于竞争者仍然有市场。本论文研究并实现了一种新型的IM客服软件通过网络Socket通道在客户端和服务器端进行高效实时通讯并从软件工程的设计规范出发研究客户的需求设计模块与功能最终评估了IM的使用效率和可扩展性。关键词实时信息交流软件客服软件电子商务AbstractInstantMessaging(IM)makescommunicationignoredistanceandavailablebetweenstrangersdespiteofthelocationAsthemostfrequentlyusednetworksoftware,IMisconsideredasthesignalofmoderncommunicationthatbringsanewrelationshipinsocietyUntilnow,IMisthemostimpressivechangeforlivesinhumanhistoryNowadays,thereishundredsofIMsoftwarepublishedbycommercialorganizationsornonprofitablegroupsAtthesametime,anewbusinessformcalledEcommercehasbeenmoreandmorenoticeableandpromisingthatbasedonadvancedonlinetechnologyHowever,themarketforaregularcommercialInstantMessagingstillleftopportunityforfollowingcompetitorsThisthesisintroducesanewIMandevaluatestheeffectivenessofdesignedIMFromSoftwareEngineeringpointofview,thesystemhasbeendesignedandanalyzedcarefully,andtestedintheendKeywords:instantmessagingchattingsoftwareelectroniccommerce目录i摘要ii英文摘要第一章–绪论第二章–选题背景第三章–系统需求分析用户组需求分析系统管理员客服管理员客户系统服务分析后台服务前台服务数据库交互界面功能描述服务终端客户终端网站管理后台数据库存储功能第四章–系统设计采用的技术标准PHP高级编程语言MySQL数据库Ajax异步通讯技术HTML网页编程标准系统设计图例数据库设计数据关系图例数据库选择表格列表表格设计数据库数据要求第五章–系统实现用例图页面关系流图系统模块实现高优先级准备装载页面与运行管理员登录与权限控制管理员后台管理实现客服登录与实现客服交互见面的实现客户交互界面的实现浮动窗口实现总结未解决的问题今后的工作将来的工作展望文献致谢附录TableContentiAbstractinChineseiiAbstractChapter–IntroductionChapter–BackgroundInformationChapter–RequirementsUsergroupanalysisAdministratorServicestaffClientSystemanalysisBackstageFrontserviceDatabaseChatinterfaceFunctiondescriptionServiceterminalClientterminalWebsitebackstageDatabaseChapter–SystemDesignTechniqueStandardusedPHPAdvancedLanguageMySQLdatabaseAjaxHTMLSystemDesignDiagramDatabaseDesignEntityrelationshipdiagramDatabasechooseTableListTableDesignDatabasedatarequirementChapter–ImplementUsercasediagramRelationshipofpagesSystemImplementPriorPreparationInstallPageandProceedImplementAdminLoginandAuthenticateProceedingImplementationAdminbackstagemanagementimplementServicestafflogininterfaceimplementServicestaffchatinterfaceimplementClientchatinterfaceimplementFloatwindowimplementConclusionUnresolvedproblemFutureworkOutlookReferenceAcknowledgeAppendixChapter–IntroductionCommercialInstantMessagingisdesignedtoachieveworkthatnormally,itisnotconsideredastherealmofIMorlackofavailableconditionstoreachthesafetyandlegalrequirementsAlthough,“Manypeoplehaveexposuretointeractivetextprimarilythroughteenageuserswhopresumablyexchangegossipandrumors,talkabouttheirpersonallives,anduseIMtodoallthethingsteenagersdo”,that“workplaceexpectationsarelikelytobeeitherthatinteractivetextisawasteoftime,orpossiblyevensociallyundesirable”,thedevelopmentofIMsoftwareandthenewerworkplaceenvironmentbegantoacceptthisnewtechnologyasausefultoolincommunicationInaddition,therearetwokeyfactorsidentifiedasqualityforacceptationinlargenumberofusersbyMarkus:“First,usersmustchoosetoabsorbcertaincostsassociatedwithuse”“Second,theremustbeinitialvariationinusers’abilitiestocontributetoandbenefitfromuseofinteractivecommunicationsystems”Therefore,theseteenagerswhoareseemedasfuturerulersoftheworld,beinginterestedinIMoruseIMaspartoflife,willbethepotentialclientofIMinworkplaceThelatestnewsshowsthatresearchteamsislookingforasuitableandavailablecommunicationtoolstoovercometheinconveniencebroughtbymistrustandgap,particularly,whentheprojectneedsquickrespondandfrequentlycommunicationItishardtosaycommercialinstantmessagingistheirbestchoiceorthepeakofrevolutionofworkHowever,thissoftwarecanmakepromotionfordevelopmentofcommunicationinworkplacepossibleandfacilitatethistypeofresearchInthisarticle,itwillfocusontheissuefacedbymodernofficers,projectdesignedtosolvetheseproblems,requirementforclient,softwareimplementandfurtherresearchoncommercialinstantmessagingChapter–BackgroundInformationInstantmessagingwascreatedinJulyofbyyoungIsraeliavidcomputerusersYairGoldfinger(,ChiefTechnologyOfficer),ArikVardi(,ChiefExecutiveOfficer),SefiVigiser(,President),andAmnonAmir(),startedacompanycalledMirabilisinordertointroduceanewwayofcommunicationovertheInternetTheseguysrealizedthatmillionsofpeoplewereconnectingtotheInternettousetheWorldWideWeb,buttheseuserswerenotinterconnectedTheycreatedatechnologywhichwouldenableInternetuserstolocateeachotheronlineontheInternet,andtocreatepeertopeercommunicationchannelseasilyTheycalledtheirtechnologyICQ,(Iseekyou)andreleaseditinNovemberof(SeeFigure)FigureWithinmonths,by"wordofmouse",,usershadbeenregisteredbyMirabilisByJuneof,Mirabiliswasabletohandle,concurrentusersandhadbecomethelargestInternetcommunicationsnetworkMicrosofthadalsocreateditsownInstantMessagingclientandservice,MSNMessenger,andanotherInternetheavyweight,Yahoo!createdoneaswellBecauseIMservicesevolvedfromproprietarysystemscreatedbycompaniestomakeaprofit,theirsystemsremainunabletointeroperatebecauseofthedesiretocontroltheIMmarketAOLandICQ,eventhoughtheyareownedbythesamecompany,arenotinteroperableNotlongafterICQestablishedthepopularityofIM,AOLdecidedtoenterthefrayWithinaveryshorttime,AOLInstantMessenger(AIM)supplantedICQastheleadingIMutility(SeeFigure)FigureOthercompanieshavetakenadifferentapproachratherthanwaitforanagreeduponstandardJabberisonecompanythathascreatedaclientprogramcapableofcommunicatingwithvariousIMsystemsInChina,themostpopularofIMisQQpublishedbyTencentCompanyinFebruary,Over,,usershaveregisteredandaround,,usersonlineatthesametimeWithitsattractingmodelandconvenientmanipulation,theyoungpeoplestartedQQfirstlywhenthenopentheirpersonalcomputerandmoreandmoreemployeesarejoiningthisgame(SeeFigure)FigureSametime’sIMcomponentisasuccessful“walkupanduse”application,requiringlittledocumentationandnotrainingUsersachieveacommerciallysignificantlevelofperformancewithinthreemonths,asshownbysavingsintheuseofothercommunicationchannelsHowever,QQandotherinstantmessagingsoftwarestillstoppedbeforebeingaformalcommercialtoolandthoughusershavegoodimpressiononit,traditionalinstantmessagingdonothaveroleinmoreofficialplaceItisnowanderthatanytexttransmittingviaunsafenetworkbynonencryptedapproachwillbechallengedbymodernthreatssuchasnetworktapping,illegaltamperingormaliciousinterceptingsothatthetextcannotcontainvaluableinformationBesides,arecordfrominstantmessagingcannotbestrongevidencewhateverhowitseemedpromisingandconvincingonthecourtForexample,adefaultclientwhobrokethecontractandviolatethespiritofcommencewillnotbefoundguiltbyprovidingtextfrominstantmessagingbetweenclientandproducerThesedefectsmakeinstantmessagingdwellontheentertainmentgatetoofficialpalaceandmakeusersbelieveinstantmessagingwilldevelopvariousmodelsandvisualeffectsratherclimbingintoahigherlevelChapter–RequirementsUsergroupanalysisAdministratorAnadministratoristheoriginalpersonwhofoundedthesystemandconstructthewebsiteforprovidingcertainserviceandhasrighttomodifyormaintainthesystemIncommercialinstantmessaging,anadmincaninstallsystemonserver,modifyexistdataandadddeleteservicestaffviaitsownbackstagepagebyenteringcorrectpasswordAsthefundamentalofficer,anadminhasthehighestpermissioninsystemThebossorchairmanonboardmaynotbeapropercandidateofadministratorbecauseofrequestofprofessionalknowledgeofcomputerscienceandnetworkNormally,technicaldirectoristheadminconsideredhisorherabilityofmanipulatingcomputerServicestaffThereisnodoubtthatservicestaffsarethedirectserviceprovidersfacedclientEveryservicestaffhasauniqueIDincommercialinstantmessagingsystemandtheyaredividedintobelongedservicegroupsuchastechnicalservice,productconsultingorproblemreportingAservicestaffcanlogonbyenteringcorrectIDandpasswordtoopenthechatinterfaceWhenoneofclientactivatesselectedservicestaff,achatinterfacewillbedisplayedtoprovidechatenvironmentDuringchat,servicestaffcantransmitfilesorpicturetoclientUnliketheadministrator,servicestaffcannotenterbackstagepagetomodifyitsinformationwhichcanonlybechangedbyadminGoodservicestaffshouldbefamiliarwithinformationofcompanyandhavehighprofessionalismDifferfromusualservicestaff,onlineservicestaffdonothaverequestofclothes–maybehave,butclientcannotseeThespeedoftypingbecomesanimportantvocationalskilltoavoidwastingtimesothatclientwillnotbeimpatientundertimeconsumingwaitingClientEachvisitorwhoreadwebpagewillbeconsideredasaclientandbeacceptedwhenvisitoractivatedaservicestafftostartByclickingoneofservicestaffsindifferentgroups,clientwillbedisplayedachatinterfacewhichissimilarwithservicestaff’sonesothatclientcancommunicatewithselectedservicestaffAnyofflineservicestaffcannotbeactivatedSystemanalysisBackstageTomanagecommercialinstantmessaging,therewillbeabackstageforadmintomodifyinformationTraditionally,abackstagepageoranyothermanagementpageiscontrolledbyadminandisinstalledonserverthatbeensuredtoavoidanytypeofthreatsThelogwindowneedsvisitorentercorrectIDandpasswordtocontinueIfadminenterbackstagepagesuccessfully,backstagepagewillshowseveralcolumnsthatcontainsysteminformationwhichwillinfluencethewholeinstantmessagingsystemforchanging:basicsetting,servicestaffmanagementandservicestaffgroupmanagementInthebasicsettingcolumn,thereiswebsitepath,admincookietime,switchinstantmessagingstatus,title,timeformat,typeofconnectiontodatabaseandtimeforkeepingrecordsIfadminchangeanycontentofcolumns,thesechangeswillbeactivatedafteradminclicking“savechange”buttonIntheservicestaffmanagementcolumn,thereisalistofexistservicestaffswiththeirbelongingservicegroup,status,titleandnecessaryinformationAdmincanchangethesedataForfurthermodification,admincanclickservicestaff’snametochangehisorherusername,passwordandfrontnameEachchangewillbeactivatedafterclicking“savechange”buttonToaddanewservicestaff,adminneedsclick“Adduser”buttonandfollowsinstructiontocompleteproceedIntheservicestaffgroupmanagementcolumn,thereisalistofexistservicestaffgroupswiththeirnameandstatusAdmincanchangethesedataToaddanewservicestaffgroup,adminneedstoenternewservicestaffgroupnameinblankandclick“CreateGroup”buttonEachchangewillbeactivatedafterclicking“savechange”buttonFrontserviceAfrontserviceisafloatwindowappearedwithvisitor’sactiononthepageThefrontserviceneedstobeconspicuousandindependentfromthecontentofwebpageAlso,thefrontserviceneedstoshowallservicestaffswithbelongingservicestaffgroupsAllonlineservicestaffnamewillbelightedandbepermittedtoactivate,otherwisetheofflineservicestaffcannotbeactivatedAfterclickingselectedservicestaff,achatinterfaceshouldbeshownDatabaseThedatabaseisthekeysystemthatplaysamediumroleininstantmessagingForbackstage,itprovidesmanagementdataandrecordschangesforservicestaff,itkeepsloginformationandrecordstextbetweenstaffandclientForbudget,itisrecommendedtouseMySQLdatabasesystemforbackstagedatabasesChatinterfaceChatinterfaceisthecommunicationenvironmentthatprovidesplatformforclientandstaffsItshouldcontainazonefordisplaytextfrombothsidesandablankzoneforenteringtextBesides,chatinterfaceshouldshowthenumberoftalkingclientsClientchatinterfaceandservicestaffchatinterfacehavelittledifference:clientchatinterfacecannotsaverecords,whileservicestaffchatinterfacecansavetextrecordsforconsiderationFunctiondescriptionServiceterminalBeforeaservicestaffentershischatinterface,heisrequiredtocheckhisIDandpasswordUnderthisinterface,theservicestaffisabletochatwithclientwhorequiresforhisorherserviceDuringthechat,servicestaffshaveabilitytosendorreceivetext,picture,smallamountofanimationandfoldersClientterminalThisinterfaceseemssimilartoservicechatinterfacebecauseoftheirsimilarfunctionsprovidedHowever,therearemorelimitationsonclientchatinterfaceconsideredservicechatstaff’smaximumcapacityforhandlingwithdifferentclientsatonetimeToensuretheperformanceofserviceterminal,clientcannotsendlargefoldersorpictures,avoidingheavyloadonserviceterminalBesides,thereisnoneedforclienttosaveinformationaboutanyservicestaff,soclientchatinterfacewillnotprovidesavingfunctionandheorshehasnotacorrespondingbackstageforfurthermodificationWebsitebackstageThisbackstageisusedformanaginginformationaboutstaffandownerAtthispage,theadministratorcanmanageservicegroup,servicestaffandsystemsettingDatabaseAllinformationaboutservicestaffs,ownerandclientswillbesavedindatabasethatinstalledontheserverChapter–SystemDesignTechniqueStandardusedPHPAdvancedLanguagePHPisawidelyused,generalpurposescriptinglanguagethatwasoriginallydesignedforwebdevelopmenttoproducedynamicwebpagesPHPlanguagesyntaxcombinedC,Java,PerlanditsownrulesIthasquickerspeedwhenprecededynamicwebpagescomparingwithCGIandPerlbecausePHPprogramisembeddedintoHTMLfilesothatithashigherexecutingefficiencyThelatestversionispublishedonMarchth,MySQLdatabaseMySQLisarelationaldatabasemanagementsystem(RDBMS)thatrunsasaserverprovidingmultiuseraccesstoanumberofdatabasesMySQLisprogrammedbyCandCItsupportsvariousoperationsystemssuchasFreeBSD,MacOSorSolarisComparingtootherlargedatabasesystem,MySQLischeaperandquickerBecauseofitsopensourcefeature,manysmallcompaniesandpeoplechooseitforkeepingdataThelatestversionisreleasedonNovth,AjaxAjax(shorthandforasynchronousJavaScriptandXML)isagroupofinterrelatedwebdevelopmenttechniquesusedontheclientsidetocreateinteractivewebapplicationsWithAjax,webapplicationscanretrievedatafromtheserverasynchronouslyinthebackgroundwithoutinterferingwiththedisplayandbehavioroftheexistingpageHTMLHTML,whichstandsforHyperTextMarkupLanguage,isthepredominantmarkuplanguageforwebpagesThepurposeofdesigningHTMListoconnectfilesorimagesintwocomputersHTMLisaneasyandgenerallanguagethatallowsmakersconstructconnectionbetweenfilesandimagesAnotheradvantageofusingHTMLishisindependencesothatanyvisitorscanreadpagewithoutconsideringtheiroperatingsystemsSystemDesignDiagramThesystemdesigndiagramisattachedinthefollowingFigureTheClient,Server,includingServiceStaffandAdminareconnectedandcommunicatedefficientlyFigDatabaseDesignThedatabaseplaysaverycentralroleinthecommercialinstantmessagingsystemAllinformationabouttext,objectsandidentificationdataarestoredinthedatabaseandwhentheseinformationneedforcomputing,theymustbeeasilyandquicklydeployedfromthedatabaseTherearetwothingsworthconsideringthoughtfullywhendesigndatabaseforthissystemFirstofall,therelationshipofeachcomponentorobjectshouldbemaintainedcarefullyandensuretheyneverbemodifiedbymaliciousornonverifiedpersonThesecondthingisthedatashouldbereadandwriteasquicklyaspossiblesothatclientwillnotlosepatientbeforereachinganagreementEntityrelationshipdiagramThefollowingdiagramshowstheentityrelationshipofeachpartinthedatabaseDatabasechooseIncommercialinstantmessagingsystem,itisrecommendedtochooseMySQLasthedatabaseBecauseMySQLisopensourcesoftware,itwillsavelotsofmoneyanditsperformancecanfulfillitsdutyinthesystemAspeopleknown,MySQLisnotasoutstandingasOracleorMicrosoftSQLinbothqueryspeedanddatacapabilityhowever,itisgoodenoughforthissystemThemostimportantreasonforchoosingMySQLdatabaseisthatithaswellperformancetoaccomplishtasksbutitisexpensivetouseOracleorMicrosoftSQLTableList()UsergroupstableThistableisusedtostoreservicegroup’sinformationthatcreatedbyadminItcontainsseveralcolumns:usergroupid,displayorder,groupnameandactivatedstatus()LinestableThistablestoresthemessagebetweenclientandserviceterminalInthistable,itcontainslineid,fromid,toid,fromname,toname,linestamp,linetextandlineclr()MainsettingstableInthistable,itstoresthesystemsettingandsystemparametersAnymodificationonsysteminadminbackstagepagewillbesavedinthistableItcontainssettingid,varname,groupname,input,title,descriptionandvaluecolumns()SessionstableThistablestorestheinformationofusersforsessionItcontainssessionid,userid,ipaddress,useragent,lastactivity,location,loggedin,admincolumns()UserstableThistablestorestheservicestaffinformationItcontainsuserid,usergroup,displayorder,username,password(encrypted),activated,isonline,userfrontname,isadminandlastactivatycolumnsTableDesign()Tableprefixlineslineidfromidfromnamelinestamplinetxtlineb

用户评价(0)

关闭

新课改视野下建构高中语文教学实验成果报告(32KB)

抱歉,积分不足下载失败,请稍后再试!

提示

试读已结束,如需要继续阅读或者下载,敬请购买!

评分:

/76

VIP

在线
客服

免费
邮箱

爱问共享资料服务号

扫描关注领取更多福利