java仿QQ局域网聊天软件设计_毕业论文

毕业论文移动版

毕业论文 > 计算机论文 >

java仿QQ局域网聊天软件设计

摘  要:随着计算机科学和Internet 的飞速发展, 网上聊天已成为人们相互交流的一种方式, 与E-mail、电话相比, 聊天服务更具有实时性和有效性。本系统是基于java的一个聊天系统。该系统设计目的主要为中小型公司内部通信使用。该软件能够帮助企业在局域网内搭建起自己的聊天系统,避免企业内部员工使用类似QQ等软件泄露内部信息,开发内容主要包括一个网络聊天服务器程序和一个网络聊天客户程序。服务器端通过Socket套接字建立服务器,读取、注册、转发客户端发来信息,并实现与数据库的连接。客户端socket与服务器建立连接,来进行客户端与客户端的信息交流。用到了通信原理,多线程技术,TCP/IP协议、客户端/服务器端模式(Client/Server模式)、设计模式、网络编程的设计方法等。服务器和客户端、客户端和客户端间的数据交换是通过对数据的编码通过数据流来交换的。该系统主要在eclipse上开发的,用java语言编写。用mysql数据库储存数据。9107
关键词: 局域网;  C/S;  Socket Swing; TCP/IP;网络编程Imitation QQ LAN chat software design
Abstract: Along with the rapid development of computer science and Internet, online chat has become a way for people to communicate with each other, compared with E-mail, the telephone, chat service is more real-time and effective. This system is based on java.The design purpose of the system is mainly for small and medium-sized companies use internal communication. This software can help the company to build their own chatting system in the local area network, and it also can avoid the staff of the company disclosing the insider information by using the other software such as QQ This system development mainly includes a network chat server program and a network chat client program. The server through the Socket, the server can read and deliver the information which client side sends, and can renovate the users tabulation. And realization of the connection to the database.The client make a connection with the server, carries on communication between the client side and the client side. The system use the principle of communication , multi-threading technology, the client/server model ,design pattern,network programming design method. The server and the client, the client and the client data exchange through the data flow. The system is developed on eclipse,using java language.Using Mysql database to store date.
Keywords: LAN; C/S ;Socket; Swing, TCP/IP
1.引言    4
1.1  开发背景    4
1.2 开发目的和意义    5
1.3 论文研究内容    5
2.系统的相关研究    5
2.1 C/S开发模式    5
2.2 即时通讯原理    6
2.3  Socket通信技术    6
3.系统分析    7
3.1 系统需求    7
3.2 系统基本功能描述    8
3.3 可行性分析    8
3.4 系统需求分析    9
3.4.1功能分析    9
4.系统设计    10
4.1设计原则    10
4.2 工作流程    10
4.3 数据库设计    11
4.4 系统模块设计    12
4.4.1 聊天系统工作原理图    12
4.4.2  系统功能模块图:    13
4.4.3 系统用例图:    13
4.4.4 活动图:    14
4.5 系统类设计    15
5.系统实现    16
5.1 实现概况    16
5.2 注册模块    17
5.2.1 流程图    17
5.2.2 模块介绍    17
5.2.3 类图介绍    18 (责任编辑:qin)