10 pts.
 Handling multiple clients
i am new in programming stuff.i want to make a code in c language in which a server is handling multiple clients one by one such that the server handle one client at one time does all the tasks and go to other client.the server only has to read data and status from each client. how should i do it.i want to do it through socket programming.can i get refernce to some material which can help me out. thanks in advance.

Software/Hardware used:
linux
ASKED: May 14, 2010  7:54 AM
UPDATED: March 1, 2011  9:01 PM

Answer Wiki:
One way is to use client/server techology. Its a three tier architecture that uses the application server as the medium between the client and the server. The application server is a software that listens to all the client request (using socket programming).Each client request is received by the app. server and appended to the request queue Then for each client in the queue, the app server sends the client request to the server (database) for processing. After processing the client request, the database server sends the return data to the application server which then returns it to the client.. At this point, the application server completes the processing of one client and moves on to the next client and repeats for every client. . Note that the app. server can be programmed to process each client one at a time or simultaneously (all at the same time). If need to process all at the same time, than you may need to implement multi threading technology.
Last Wiki Answer Submitted:  May 15, 2010  1:30 am  by  Twlp123   165 pts.
All Answer Wiki Contributors:  Twlp123   165 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

can you do that using visual c++ .net?

 10 pts.