局域网即时通讯软件设计与实现毕业论文

兰州交通大学毕业设计(论文)

摘 要

即时通信在互联网领域的应用取得了巨大的成功,但在学校﹑企业内部的应用仍远未普及。鉴于即时通讯作为一项有广泛应用价值的技术框架,在逐步适应企业网络﹑教育网络的应用特点后,局域网即时通信必将取得和电子邮件一样的普及效果。该系统使用Myeclipse作为开发平台﹑MysqL数据库存储用户信息和聊天记录,用套接字连接客户端和服务器,用数据包套接字发送消息。本系统采用C/S模式构建,由客户端和服务器组成。客户端只要填写服务器的IP地址和通信端口号,并通过所分配的账号,就可以登陆和使用。服务器与MysqL数据库可部署在同一网段的任一节点上,通过接受客户端不同请求而对数据库进行增加﹑删除、修改、查找的操作,这样就可以方便的进行维护并前保证了同一局域网信息的安全和网络资源的充分利用,并且最大程度的保证了数据库的安全性。使用该系统可进行一般的文字交流,添加好友等功能。

关键词:Myeclipse;Socket;多线程;MysqL数据库;TCP/IP协议

I

兰州交通大学毕业设计(论文)

ABSTRACT

Instant messaging applications on the Internet were a great success, but in schools, enterprises are still far from universal in application. In view of instant messaging applications as the value of a broad technical framework, and gradually adapt to the corporate network, the application of the characteristics of the education network, the LAN access to instant messaging and e-mail will be the same universal effect. The introduction of the system Myeclipse as a development platform, Mysql database storing user information and chat with a socket connection client and server, and send a message packet socket. The system uses C/S mode of construction, from the client and server-side component. Simply fill out the client server IP address and communications port number, and through the distribution of the account, you can log in and use. Mysql database server and can be deployed in the same network segment at any node, by receiving the request of the client defferent additions and deletions to the database search operation, This can be convenient for maintenance and to ensure that the same local area network information security and make full use of network resources and ensure maximum safety of the database. The system can be used for general exchang of text, add friend functions.

Key words: Myeclipse; Socket; Thread; Mysql Databasse; TCP/IP

II

兰州交通大学毕业设计(论文)

目 录

前言 ............................................................................................................................................ 1 第1章 绪 论 ........................................................................................................................ 2 1.1 课题背景及意义 ............................................................................................................ 2 1.2 课题现状 ........................................................................................................................ 2 1.3 课题目标与内容 ............................................................................................................ 3 第2章 系统开发环境和关键技术 ........................................................................................ 4 2.1 开发环境 ........................................................................................................................ 4 2.2 关键技术 ........................................................................................................................ 4 2.2.1Java ............................................................................................................................. 4 2.2.2 Myeclipse与MysqL ................................................................................................. 6 2.2.3Java Socket网络编程接口 ........................................................................................ 7 2.2.4多线程开发技术 ....................................................................................................... 7 2.2.5 TCP/IP ﹑UDP协议 ................................................................................................ 8 2.2.6 Client/Server结构(客户端/服务器模式) ............................................................ 9 第3章 系统分析与设计 ...................................................................................................... 10 3.1 可行性分析 .................................................................................................................... 10 3.1.1经济可行性 ............................................................................................................. 10 3.1.2 技术可行性 ............................................................................................................ 10 3.1.3 法律可行性 ............................................................................................................ 11 3.2 系统分析 ...................................................................................................................... 11 3.2.1系统需求 ................................................................................................................. 11 3.2.2需求分析 ................................................................................................................. 12 3.3 系统设计 ...................................................................................................................... 21 3.3.1设计原则及一般要求 ............................................................................................. 21 3.3.2概要设计 ................................................................................................................. 21 3.3.3功能设计 ................................................................................................................. 21 3.3.4工作流程 ................................................................................................................. 25

III

联系客服:779662525#qq.com(#替换为@) 苏ICP备20003344号-4