文件名称:Socket
- 所属分类:
- JSP源码/Java
- 资源属性:
- [WORD]
- 上传时间:
- 2012-11-26
- 文件大小:
- 32kb
- 下载次数:
- 0次
- 提 供 者:
- wan****
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
用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
......\新IO Client端.doc
......\新IO Server端.doc
......\旧IO Client端.doc
......\旧IO Server端.doc
......\新IO Client端.doc
......\新IO Server端.doc
......\旧IO Client端.doc
......\旧IO Server端.doc