1、 沈阳师范大学 学士学位论文 I 【 摘 要 】 随着互联网的快速发展,网络聊天已经成为人们日常交流沟通的不可或缺的方式,很受人们的青睐。同时国内外也出现了很多非常不错的聊天工具,其中应用比较广泛的有腾讯 QQ、微软 skype等等。本系统使用 JAVA语言并基于 C/S模式进行开发。通过 Socket建立服务器与客户端间的 TCP 连接,服务器读取、转发客户端发来信息,并刷新用户列表。用流程图的方式对系统使用中的注册、登录、发送信息等过程进行分析,用直接继承Thread 类来实现多线程,用 TCP/IP 协议进行客户端与服务器端的通信,并使用网络编程的常用技术和一 些软件工程的基本方法来完成
2、聊天子系统和文件子系统的设计研发。在分析聊天系统的具体情况后,本系统采用 Eclipse 为基本开发环境并使用 java 语言进行编写,首先可在短时间内建立系统应用原型,然后,对初始原型系统进行不断修正和改进,直到形成可行的系统。 【 关键词 】 局域网 聊天 Socket JAVA 沈阳师范大学学士学位论文 II Design and Implementation of Chat System based on C/S model 【 Abstract】 Along with the fast development of Internet, network chat has become
3、indispensable to Peoples Daily communication, is very popular with the people . At the same time also appeared a lot of very good chat tools at home and abroad, is widely used in it have Tencent QQ、 Skype and so on. This system is mainly based on the JAVA language and C/S mode of development. The se
4、rver is established through the Socket, the server can read and deliver the information which client side sends, and can renovate the users tabulation. With the LAN correspondence mechanism principle, through inheriting the Thread kind to establish the multithreading directly. In the development, it
5、 uses the elementary theory knowledge which the computer network programme for example, TCP/IP agreement, Client/Server pattern, network programming design method and so on. In the network programming, it realizes reading and transmission of the information, that is,information flows realize the inf
6、ormation exchange, introduce information flow analysis for realizing a system, in which contains some basic software engineering methods. After analyzes these situations, this system takes Eclipse as the basic development environment and compiles in java language. first, it will establish the system application prototype in a short time. then, for the initial prototype system, it needs constantly revised and improved, until a viable system. 【 Keywords】 LAN Chat Socket JAVA