Description: 多线程通信 程序说明 Ⅰ、设计项目: 简单的聊天程序 Ⅱ、设计人: 刘亚焱 Ⅲ、设计时间: 2003.5.6 Ⅳ、设计步骤: 1)需求分析: 用java实现底层网络通信,我用的是 TCP/IP协议里的套接字(Socket)编程接口来实现网络通讯。 2)设计部分: socket是一种流式通信机制,是一种基于连接的通信,即,在通信之前通信双方确认身份并建立一条 专用的虚拟连接通道,然后他们通过这条通道传送数据信息进行通信,当通信结束时再将原来所建的连 接拆除。-multithreaded communications description of the procedures, design projects : a simple chat program II, designer : Liu Yan III, the design time : 2003.5.6 IV, the design steps : 1) Demand Analysis : java achieve underlying network communication, I use the TCP/The IP socket (Socket) programming interfaces to network communications. 2) Design : socket is a streaming communication mechanism is based on a link of communication, namely, the communication before the two sides identified telecommunications and the establishment of a dedicated virtual link, and then they pass this information channel for transmission of data communications, when the communication ended when it originally construction of the link removed. Platform: |
Size: 315392 |
Author:阙 |
Hits:
Description: 一个简单的socket聊天工具,实现在发送文件和语音聊天等功能,还能聊天的同时听音乐,分服务器端和客户端两部分-a simple socket chatting tool, in this paper and voice chat features, but also chat while listening to music and sub-servers and clients of two parts Platform: |
Size: 18432 |
Author:椰子 |
Hits:
Description: 一个简单的用java编写的聊天工具,用socket类处理通信部分
1.
运行server.bat
或在命令行下输入(要在工作目录):
java -jar Chat.jar 8888
打开服务器 8888也可以改为任意端口号
2.
运行client.bat
或在命令行下输入(要在工作目录):
java -jar Chat.jar
打开客户端
3.
主要类说明:
Server.java 等待用户连接,连接后为当前用户创建ServerListener对象
ServerListener.java 接受用户请求,并将消息移入消息队列
Sender.java 消息发送器,用循环不断检查消息队列中是否有新消息,有则发送消息,被发送的消息移出队列
Client.java 接受信息,提供与界面之间的接口函数
Chat.java 主要是用户界面 -with a simple preparation of java chat tools, with socket type handling a part of communication. server.bat or running the command line input (to the Public for directory) : java-jar Chat.jar 8888 Open Server 8888 can also read arbitrary port 2 . client.bat or running the command line input (to the working directory) : java-jar Chat.jar Open Client 3. main categories : Server.java waiting for users to connect, after connecting to the current users to create object ServerListener ServerListener . java user request, the information will be relocated Message Queue Sender.java news transmitters, cyclic Message Queue constantly check whether there are new news, then send messages the news was sent out of Queue Client.java receive information, interface provides the interface between Chat.java m Platform: |
Size: 26624 |
Author:ZX |
Hits:
Description: JAVA做的一个简单的聊天室软件,含客户端和服务端程序,程序很简单,不过初学者可以研究一下,学习SOCKET编程及多线程的概念。-JAVA do a simple chat room software, including client and server procedures, the procedures are simple. But beginners can look at the study Socket Programming and multithreading concepts. Platform: |
Size: 5120 |
Author:chenwenbin |
Hits:
Description: 一个基于Java编写的Socket程序,提供简单的FTP功能实现
This networking program set consists of implementation of FTP, TELNET, HTTP SERVER, UDP NEWS SERVER, Multi client parallel chat server, Date server.
Knowledge of socket programming, applet, AWT, thread, and IO streams is essential to understand these programs.
All Program Tested in JDK 1.4, and Run Successfully.
Do not forget to run server program before starting client program.
Developed By:
Divyen K Pate-A Java-based Socket procedures prepared to provide a simple FTP functions This networking program set consists of implementation of FTP, TELNET, HTTP SERVER, UDP NEWS SERVER, Multi client parallel chat server, Date server.Knowledge of socket programming, applet, AWT , thread, and IO streams is essential to understand these programs.All Program Tested in JDK 1.4, and Run Successfully.Do not forget to run server program before starting client program.Developed By: Divyen K Pate Platform: |
Size: 46080 |
Author:Tony Yau |
Hits:
Description: 模拟最简易的聊天窗口界面,服务器和客户端程序,基于socket编程,窗口之间可相互通信-Analog most simple chat window interface, server and client program, based on socket programming to communicate with each other between the window Platform: |
Size: 4096 |
Author:pujing |
Hits:
Description: 轻松学会用socket编写的简单的聊天程序,包括客户端和服务器-Learn how to use socket easily prepared by simple chat program, including client and server Platform: |
Size: 1024 |
Author:jioncomer |
Hits:
Description: This a simple program Chat Multiclient with Java Socket-This is a simple program Chat Multiclient with Java Socket Platform: |
Size: 27648 |
Author:sca |
Hits:
Description: 简易手机聊天软件,socket实现。需要一个手机做server,同时支持多个client-Simple mobile chat software, socket implementation. Need a phone to do server, while supporting multiple client Platform: |
Size: 7168 |
Author:zhouweimin |
Hits:
Description: 简单的java socket聊天程序,无图形界面版,可以一对多聊天,之前已上传了有界面的-Simple java socket chat program, no graphical interface version, can be one to many chat, before the interface has been uploaded there Platform: |
Size: 7168 |
Author:黄振 |
Hits: