文件名称:Socket
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:31.86kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
用Java Socket完成如下功能:建立客户端和服务器端通讯,服务器端地址为本地端口自拟。两端以TCP形式通讯,假设客户端Class叫Client,服务器端Class叫Server。当运行 java Client Hello时,服务器端能接受客户发来的Hello字符并打印”Receive Hello”然后返回给客户端“How r u doing”字符串 客户端收到后打印”Received How are you doing”. 此时服务器端服务始终运行并未停止并等待其他Socket连接(客户端运行一次可以停止),直到客户运行 java Client Bye时 服务器端收到”Bye”并打印”I don’t wanna die”后 服务器停止运行。-Java Socket complete with the following functions: the establishment of client and server communications, server-side address of the local port from be. TCP in the form of communication at both ends, assuming that the client Class called Client, server-side Class called Server. Java Client Hello When running, the server can accept Hello Guest sent characters and print the " Receive Hello" and then go back to the client " How ru doing" string after the client received print " Received How are you doing" . This When running server-side service is not always stop and wait for the other Socket connection (the client can stop a run), until the customer is running java Client Bye received at the server-side " Bye" and print " I don' t wanna die" after the server to stop run.
相关搜索: Socket java client
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Socket/新IO Client端.doc
Socket/新IO Server端.doc
Socket/旧IO Client端.doc
Socket/旧IO Server端.doc
Socket
Socket/新IO Server端.doc
Socket/旧IO Client端.doc
Socket/旧IO Server端.doc
Socket
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.