1、 课课 程程 设设 计计 报报 告告 课 程 名 称: 面向对象程序设计 课程设计题目: 贵师院局域网聊天软件 姓 名: 学 号: 组 员: 学 院: 数学与计算机科学 专 业: 计算机科学与技术 年 级: 指 导 教 师: 二一三 年 七七 月 面向对象程序设计课程设计报告 目录 1.设计的目的 1 2设计的内容. 1 3概要设计. 3 3.1 局域网聊天 QQ 的功能 3 3.2 局域网聊天 QQ 的能模块如下: 3 4详细设计. 6 4.1 编写服务器端程序. 6 4.1.1 问题陈述 . 6 4.1.2 解决方案 . 6 4.2 客户端程序编写. 7 5总结. 8 6参考资料 . 8
2、7.附录 9 面向对象程序设计课程设计报告 摘 要 随着互联网的发展,人们对网络的依赖越来越多,越来越离不开网络,由此 而产生的聊天工具越来越多。本次实验将依照腾讯公司聊天工具 QQ 的设计,实 现局域网网络通信的基本功能,以便在用户在不联网的情况下也可以进行通信。 本文所写的“贵师院局域网聊天软件”是为了解决师院为了解决广大师院同 学们上网困难,网费透支,网速慢等困难。该软件主要包括:服务器响应,登录 系统, 注册, 好友界面, 聊天界面等。 在这次的课程设计中, 我们应用了 MyEclipse 6.0 开发工具在 WINDOWS 平台上开发了一个基于 WINDOWS 平台的局域网通信工 具
3、,我们充分学习了 JAVA Swing 和 awt 界面开发技术,使自己在界面应用和界 面布局方面得到更多的实践,应用 Socket 技术实现网络的连接功能,对网络的 实现和通信方面有了进一步的理解,多线程方面的应用,使得客户端和服务端可 以实现多任务功能。 关键词:Java, MyEclipse, 通讯, 局域网,聊天 面向对象程序设计课程设计报告 Abstract With the development of the Internet, people rely on network more and more, more and more inseparable from the net
4、work, the resulting chat tools, more and more. This experiment will be in accordance with the design of tencent chat tool QQ, realize the basic function of the LAN network communication, so that the users in the case of not connected to the Internet can also communicate. This article written by the
5、“your LAN chat software college“ is to solve in order to solve the general teachers college students surfing the Internet is difficult, net charge overdraft, network speed is slow and difficult. The software mainly includes: the server response, login system, registration, friend interface, chat int
6、erface, etc. In the curriculum design, we applied the MyEclipse 6.0 development tools in WINDOWS platform based on WINDOWS platform to develop a local area network (LAN) communication tools, we fully learned JAVA Swing and awt interface development technology, make oneself in the aspect of application interface and interface layout to get more practice, Socket technology is applied to implement the network connection, for the realization of the network