java中给出一个多线程TCP的ServerSocket例子?

以下的例子,是一个服务器对多个客户端。我们的客户端程序可以运行很多遍,代表多个客户。   /*in this frame work, many clients can access the server with many thread and many socket using only one port,
bbb client use bbb socket with bbb thread, by default, one port can accept 50 socket. */


import java.net.ServerSocket;
import java.io.*;
import java.net.Socket;


详情黏贴以下网址在地址栏后请进:http://www.mark-to-win.com/JavaBeginner/JavaBeginner9_web.html#TCPSocketMultiThread

阅读更多
想对作者说点什么?

博主推荐

换一批

没有更多推荐了,返回首页