Handling multiple clients

10 pts.
Tags:
C programming
Linux
Socket programming
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

Answer Wiki

Thanks. We'll let you know when a new response is added.

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.

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Rpickworth14
    can you do that using visual c++ .net?
    10 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following