基于java的C/S模式网络聊天器的设计实现
摘要
在网络飞速发展的今天,互联网上存在大量的信息,人与人之间的沟通、信息交换显得尤为重要。本系统通过java的Socket实现了一个基于局域网和网络的聊天室的程序的开发。系统采用C/S结构,客户端与客户端以及客户端与服务器端之间通过Socket传送消息。使用JAVA语言编写,开发工具采用Eclipse。服务器端设计与实现过程中,采用了多线程技术,大大增强了程序对服务器资源的利用。聊天系统完成后,具有发送消息、接收消息等功能。
关键字:聊天室;Java;Socket; C/S ;TCP;多线程
ABSTRACT
The rapid developing of network today.There is a large number of information in Internet, so it is very important for people to communicate with each other and exchange information. This system develops a program based on a chat room of net line and web, through Socket of java. System uses the C/S structure,client and client-side and server-side client and send messages through Socket.The use of JA V A language,development tools using Eclipse.Design and Implementation of server-side process,the use of multi-threading technology,which can process greatly enhanced the use of server resources.Chat system can send messages,receive messages and so on.
Key Words: ChatRoom; Java; Socket; C/S;TCP;Multithreading