文件名称:chatClientandchatServer
- 所属分类:
- Internet/网络编程
- 资源属性:
- [Java] [源码]
- 上传时间:
- 2016-03-20
- 文件大小:
- 33kb
- 下载次数:
- 0次
- 提 供 者:
- 王**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
基于java的多客户端通信小程序源码,典型的 C/S 架构,有界面。主要分为两部分,服务器端和客户端。使用 TCP/IP 协议通过 Socket 进行通信。 服务器端主要完成登录验证和消息收发的功能。启动服务器后提供一个网 络端口,等待客户端发出请求,登录到此服务端,然后进行网络通讯和消息的 转发。要实现多客户端之间的通信,则必须构建多线程机制。
客户端主要完成登录验证和消息收发和显示功能,客户端可通过服务器端 的 IP 地址发送连接请求,然后登陆聊天室。成员列表栏中会显示在线的所有 人名单,有人退出聊天室,成员列表会自动除名。客户端需要实现简单的人机 交互,可采用 Java 的 java.swing 和 java.awt API 类实现,Eclipse 提供了 WindowBuilder 插件可以方便的实现可视化布局界面。 -Java-based multi-client communication applet source code, a typical C/S structure, there is the interface. It divided into two parts, the server and the client. Using TCP/IP protocol for communication via Socket. Mainly to complete the login authentication server and messaging features. After starting the server provides a network port, waiting for the client request, log on to the server, and then forwards the network communications and messages. To realize the communication between the multi-client, multi-threading mechanism must be built.
Client is complete login validation and messaging and display capabilities, client connection requests can be sent through the IP address of the server and log in chat rooms. Members list box displays a list of all people online, it was out of chat rooms, list of members will be automatically removed. Clients need to implement a simple human-computer interaction, and may be Java-java.swing java.awt API class implementation, Eclipse provides a plug
客户端主要完成登录验证和消息收发和显示功能,客户端可通过服务器端 的 IP 地址发送连接请求,然后登陆聊天室。成员列表栏中会显示在线的所有 人名单,有人退出聊天室,成员列表会自动除名。客户端需要实现简单的人机 交互,可采用 Java 的 java.swing 和 java.awt API 类实现,Eclipse 提供了 WindowBuilder 插件可以方便的实现可视化布局界面。 -Java-based multi-client communication applet source code, a typical C/S structure, there is the interface. It divided into two parts, the server and the client. Using TCP/IP protocol for communication via Socket. Mainly to complete the login authentication server and messaging features. After starting the server provides a network port, waiting for the client request, log on to the server, and then forwards the network communications and messages. To realize the communication between the multi-client, multi-threading mechanism must be built.
Client is complete login validation and messaging and display capabilities, client connection requests can be sent through the IP address of the server and log in chat rooms. Members list box displays a list of all people online, it was out of chat rooms, list of members will be automatically removed. Clients need to implement a simple human-computer interaction, and may be Java-java.swing java.awt API class implementation, Eclipse provides a plug
(系统自动生成,下载前可以参看下载内容)
下载文件列表
多客户端通信的聊天室设计与实现
..............................\chatClient
..............................\..........\.classpath
..............................\..........\.project
..............................\..........\.settings
..............................\..........\.........\org.eclipse.jdt.core.prefs
..............................\..........\bin
..............................\..........\...\com
..............................\..........\...\...\wanggensheng
..............................\..........\...\...\............\chatClient
..............................\..........\...\...\............\..........\ChatClient$1.class
..............................\..........\...\...\............\..........\ChatClient.class
..............................\..........\...\...\............\..........\ChatManager$1.class
..............................\..........\...\...\............\..........\ChatManager.class
..............................\..........\...\...\............\..........\ClientMainWindow$1.class
..............................\..........\...\...\............\..........\ClientMainWindow$2.class
..............................\..........\...\...\............\..........\ClientMainWindow$3.class
..............................\..........\...\...\............\..........\ClientMainWindow.class
..............................\..........\...\...\............\..........\LoginWindow$1.class
..............................\..........\...\...\............\..........\LoginWindow$2.class
..............................\..........\...\...\............\..........\LoginWindow.class
..............................\..........\src
..............................\..........\...\com
..............................\..........\...\...\wanggensheng
..............................\..........\...\...\............\chatClient
..............................\..........\...\...\............\..........\ChatClient.java
..............................\..........\...\...\............\..........\ChatManager.java
..............................\..........\...\...\............\..........\ClientMainWindow.java
..............................\..........\...\...\............\..........\LoginWindow.java
..............................\chatServer
..............................\..........\.classpath
..............................\..........\.project
..............................\..........\.settings
..............................\..........\.........\org.eclipse.jdt.core.prefs
..............................\..........\bin
..............................\..........\...\com
..............................\..........\...\...\wanggensheng
..............................\..........\...\...\............\chatServer
..............................\..........\...\...\............\..........\CreateServerThread.class
..............................\..........\...\...\............\..........\Server.class
..............................\..........\src
..............................\..........\...\com
..............................\..........\...\...\wanggensheng
..............................\..........\...\...\............\chatServer
..............................\..........\...\...\............\..........\Server.java