且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

具有套接字服务器的多个客户端

更新时间:2022-10-23 19:31:39

您需要处理套接字的请求托管在一个单独的线程上并将它们交给处理线程。

Joshua Bylotas
http:// www。 ivorymatter.com

Hi,
I used asynchronous Sockets with Multiple Clients.

private

 

Socket serverSocket; //Server Socket

 

private Socket[] clientSocket = new Socket[10000];

Server is running on Public IP.

All the reponses are received at sever side but with more delay & all the responses combinely received at server side.


Please let me know if there is any possibility to rectify it.

Venkata PrasadK

You need to process incomming requests tot he socket host on a seperate thread and hand them off to a processing thread.

Joshua Bylotas
http://www.ivorymatter.com