文件名称:socket_communication
- 所属分类:
- JSP源码/Java
- 资源属性:
- [C/C++] [Java] [源码]
- 上传时间:
- 2013-11-11
- 文件大小:
- 3kb
- 下载次数:
- 0次
- 提 供 者:
- yela****
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
TCP套接字编程实现:
开发一个多线程服务器,它能并行服务于多个请求。
提示:
用Java或c/c++语言开发;
通过调用操作系统API接口创建线程;
假定3个客户端,客户端i发送“Hi,God”,服务器回答“What can I do for you, my son i”,客户端收到后显示服务器回答。
分别用TCP和UDP两个协议来测试,端口号自定义
-TCP socket programming: Develop a multi-threaded server, it can serve multiple requests in parallel. Tip: Use Java or c/c++ language development by calling the operating system API interface to create threads assume 3 client, the client i send " Hi, God" , the server replied " What can I do for you, my son i" , displayed after the client receives the server reply. TCP and UDP were used to test the two protocols, port numbers Custom
开发一个多线程服务器,它能并行服务于多个请求。
提示:
用Java或c/c++语言开发;
通过调用操作系统API接口创建线程;
假定3个客户端,客户端i发送“Hi,God”,服务器回答“What can I do for you, my son i”,客户端收到后显示服务器回答。
分别用TCP和UDP两个协议来测试,端口号自定义
-TCP socket programming: Develop a multi-threaded server, it can serve multiple requests in parallel. Tip: Use Java or c/c++ language development by calling the operating system API interface to create threads assume 3 client, the client i send " Hi, God" , the server replied " What can I do for you, my son i" , displayed after the client receives the server reply. TCP and UDP were used to test the two protocols, port numbers Custom
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Client2.java
Client3.java
MultiServer.java
ServerThread.java
Client.java