which should use pipe or socket at Client-server
-
Hi All, I am working on a client server application. I am having a challenge that i have to serve the 250 client concurrently. Each request takes 2-5 second to execute at server side. For this what should i use 1 PIPE implementation or SOCKET with a queue? and why? Which performance is better. Thanks
-
Hi All, I am working on a client server application. I am having a challenge that i have to serve the 250 client concurrently. Each request takes 2-5 second to execute at server side. For this what should i use 1 PIPE implementation or SOCKET with a queue? and why? Which performance is better. Thanks
-
Hi All, I am working on a client server application. I am having a challenge that i have to serve the 250 client concurrently. Each request takes 2-5 second to execute at server side. For this what should i use 1 PIPE implementation or SOCKET with a queue? and why? Which performance is better. Thanks
hi, U can use the following arch if u think this better. go with TCP/IP. 1. create one sock which will be in listen mode. 2. once u got a connect request, create one sock and thread dynmically and bind with the requested client. this socket will serve for that client only. this can be implemented in multithread mode where on thread always listen for client, and each thread will serve for perticular client. -Parthi
-
Hi All, I am working on a client server application. I am having a challenge that i have to serve the 250 client concurrently. Each request takes 2-5 second to execute at server side. For this what should i use 1 PIPE implementation or SOCKET with a queue? and why? Which performance is better. Thanks
-
I will suggest to use IO Completion Ports with sockets. i will not advise to have 250 threads for 250 clients... Search CP with IOCP you will get many good articles.. I hope it helps.
Regards, Sandip.
-
Thanks for the input, Will it work for the different platform. I am to create the server for WINDOWS, Linux and MAC. Thanks
singh_nav wrote:
I am to create the server for WINDOWS, Linux and MAC.
No.. I dont know anything that will work with all three platforms. I don't understand why server needs to be built for different platforms. You can have a server on one platform and you can built clients on different platforms. Your application might have that requirement but just a opinion.
Regards, Sandip.
-
singh_nav wrote:
I am to create the server for WINDOWS, Linux and MAC.
No.. I dont know anything that will work with all three platforms. I don't understand why server needs to be built for different platforms. You can have a server on one platform and you can built clients on different platforms. Your application might have that requirement but just a opinion.
Regards, Sandip.
-
thanks, Actually my application is build for all these platform. And i want to design all code into one application, that time i just need to build at different platform only to support it. Thanks again