文档介绍:摘要
的飞速发展,网络聊天以其操作简单、方便快捷、私密性好等优点已经迅速发展成为最普遍的网络交流方式之一,越来越受到人们的青睐,丰富了人们的网上生活。开发并实现具有自身特色的网络聊天系统具有实际应用价值。
本网络聊天系统基于Java应用程序设计,以Client/Server为开发模式,以Eclipse为开发环境,以MySQL为后台数据库,利用JDBC连接数据库。系统主要包括服务器模块和客户端模块,服务器模块能够对客户端发来的用户信息进行匹配、读取和转发;客户端模块能够进行注册、登录、聊天和文件传输。系统不但实现了点到点的聊天,还利用Java提供的Socket类和多线程功能,在单个程序中同时运行多个不同进程,从而实现多点对多点的聊天。
总之,该聊天系统具有开放性,实时性,多话题交错等特点,方便了人们网上交流。
【关键词】网络聊天服务器模块客户端模块 Socket
ABSTRACT
With the rapid development of , network chat with its simple operation, convenient and gond privacy has quickly e the most popular way works, more and more people like it, enrich people's online lives. Development and Realization of work chat system with its own characteristics and has practical application value.
The chat system is based on Java application, designed by Client / Server as the development of models, as Eclipse development environment, MySQL as the backend database, and using JDBC to connect database. The system includes server modules and client modules, server module can match users' data, read and forward the information which is sent by client; client module to regist, login, chat and file transfer. The system not only achieves peer-to-peer chat, but also use the Java provids Socket class and multi-threading capabilities, in a single program run different processes at the same time, in order to achieve multipoint chat.
In short, the chat system is open, real-time and multi-topic staggered features, easy for people municate online.
【Key work Chat Client Module Server Module Socket
目录
前言 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
第三节登录模块测试 30
第四节聊天模块测试 31
第五节文件传输模块测