网络及时通信系统i毕业设计论文任务书一、题目及专题:1、题目网络及时通信系统2、专题二、课题来源及选题依据Internet的迅速发展,使得一切变得简单而快捷。但是带给人们方便的同时,它也不可避免的带来了诸多不利因素。许多企业为避免不必要的麻烦,提高工作效率,诸如QQ等聊天工具禁止开启。那么,公司内部的员工交流切磋就不是太方便,如何把聊天工具应用于公司内部网络中,探讨服务端程序,这是本论文的选题原则。三、本设计(论文或其他)应达到的要求:本聊天工具应包括以下主要功能:用户注册资料修改用户登录查找好友添加好友添加好友应答直接添加好友好友列表查看聊天资料发送消息接收消息查看好友资料更新好友列表陌生人消息删除好友上线通知大学学士学位论文ii摘要本次设计所开发的网络聊天工具可作为公司、企业的内部交流工具使用,既充分利用了网络资源,又保证内部信息的安全。本聊天工具由服务器端程序和客户端程序两部分组成,整体采用Java平台开发,并使用SQLSERVER2000管理数据库数据。服务器是后台支持程序,运行界面仅是一个DOS窗口;客户端程序面向实际用户,它有必要的界面和按钮,向用户提供网络及时通信的功能。本聊天工具的开发采用TCP/IP协议连入互连网,通过UDP协议交换互连网络环境中计算机的通信。但是服务器端和客户端的通信并不是一对一的映射,而是一对多的效应。这就需要客户/服务器模式,这里采用的是最常见的Socket网络编程,它能实现服务器端的多线程。关键字:SQLSERVER2000,TCP/IP协议,UDP协议,socket网络编程网络及时通信系统iiiAbstractThisdesigndevelopsthenetworkchatsthetooltobepossibletotakethecompany,enterprise'sinternalexchangetooluse,bothfullyhasusedthenetworkresources,andguaranteeinteriorinformationsecurity.Thischatsthetooliscomposedbytheserverendprocedureandtheclientsideproceduretwoparts,thewholeusestheJavaplatformdevelopment,andusesSQLSERVER2,000tomanagethedatabasedata.Theserveristhebackstagesupportprocedure,themovementcontactsurfaceisonlyaDOSwindow;theclientsideprocedurefacetheactualuser,ithasthenecessitythecontactsurfaceandthebutton,providesthenetworkpromptcorrespondencetotheuserthefunction.ThischatsthetooldevelopmenttouseTCP/IPagreementcompanyentersinterlocksthenet,throughUDPagreementexchangeinterconnectingnetworkenvironmentincomputercorrespondence.Buttheserverendandtheclientsidecorrespondenceisnotapairofmapping,butispairofmanyeffects.Thisneedsthecustomer/theserverpattern,hereusesisthemostcommonSocketnetworkprogramming,itcanrealizetheserverendmultithreading.Keywords:SQLSERVER2000,TCP/IPagreement,UDPagreement,socketnetworkprogramming网络及时通信系统i目录第一章开发工具概述及技术准备...........................................................................11.1引言.........................................................................................................11.2SQLSERVER2000概述.......................................................................11.2.1SQLSERVER2000简介............................................................11.2.2SQLSERVER2000与其它数据库的比较................................21.3TCP/IP协议............................................................................................21.4UDP协议................................................................................................41.4.1UDP协议.....................................................................................41.4.2UDP与TCP协议的比较............................................................41.5Socket网络编程.....................................................................................5第二章系统总体设计...............................................................................................62.1模式设计分析........................................................................................62.2功能模块划分........................................................................................72.3多线程设计............................................................................................82.4数据库设计............................................................................................8第三章系统详细设计...............................................................................................113.1服务器的设计.......................................................................................113.1.1主服务器类的设计.....................................................................113.1.2ServerThread类的设计..............................................................113.1.3登录验证...................................................................................123.1.4新建用户...................................................................................123.1.5好友处理...................................................................................123.1.6退出下线...................................................................................133.2客户端的设计......................................................................................133.2.1用户注册...................................................................................143.2.2用户登录...................................................................................173.2.3主程序设计...............................................................................203.2.4消息通信的设计.......................................................................283.2.5好友管理...................................................................................31第四章系统的运行结果.........................................................................................33总结.........................................................................................................................37致谢.........................................................................................................................38参考文献.....................................................................................................................38附录.............................................................