搜索资源列表
java实现服务器和客户机通讯的的方法
- 本文介绍一种用Java的Socket和ServerSocket实现服务器和客户机通讯的的方法。原理是在服务器端建立ServerSocket端口并监听,接收到客户端的连接请求时建立Socket,得到Socket的输入输出流。在客户端新建Socket并获得输入输出流。服务器和客户端的输入输出流建立后使用writeLine()和println()方法彼此发送和接收数据。为提高代码效率,建立两个类clientAgent和serverAgent。 -This article introduces a
socket
- java socket编程的一个例子,主要实现客户端和服务器端的交流,是一个小的聊天室-java socket programming example, the main achievement of the client and server side exchange is a small chat room
chat
- socket编程,模拟了一个客户端,一个服务器端,各有一个界面,可添加客户端,通过服务器实现互相通信。 -socket programming to simulate a client, a server-side, each with an interface, you can add clients, achieved through the server communicate with each other.
java
- 这是一个客户端与服务端进行通信的java小程序,使用socket通信,当从客户端输入窗口提示的通关语,则会在窗口显示从服务器端发来的通过信息。-This is a client and server-side java applets to communicate using socket communication, input from the client window when the prompt clearance language, will be displayed in the
SocketDemo
- 这是简单的一个socket通信编程demo,利用java代码编写。客户端服务器分开。-Write a socket communication simple demo, is primarily a simple server-side code
