Client server using c, C/C++ Programming

(a) client server or multithreaded client-server, where server will create pool of worker threads (say 5) to provide services to pool of clients (say 5 ).Server should be behaving as a concurrent server. Now send request (say send a request string hello) from clients. Server should respond with string Hi, responding with Thread1, Thread2 and so forth, which is the response from server thread1, thread2, etc that you have created already.


(b) Implement a framework for multithreaded client-server, where a server (consider 2 servers) has to work as a client first followed by as server. Consider there are two clients (say C1,C2), where C1 and C2 will send the request to access a file (say file.txt) that C1 wants to have the first 10 lines in the file and C2 wants to have next 10 lines from the file. Server1 has to implement worker threads for C1 and C2, such that it will receive the request from C1 and C2 and post the read request to Server2 that actually accesses the file and send the result for C1 and C2. You may need to synchronize the access to the file by some means. Try to realize the condition. 

(c) Implement a multithreaded server that can be used as a proxy server to access some designated file (say it reflects the proxy copy of two file1.txt, file2.txt). Now use a client to send as request to the server and try to access the files from proxy copy.

 

 

Posted Date: 2/26/2013 4:09:14 AM | Location : United States







Related Discussions:- Client server using c, Assignment Help, Ask Question on Client server using c, Get Answer, Expert's Help, Client server using c Discussions

Write discussion on Client server using c
Your posts are moderated
Related Questions
Write an algorithm for multiplication of two sparse matrices using Linked Lists.

Objects as Function Arguments: In C program there are several methods to define arguments, and in some case even a structure can be approved as an argument.  Similarly in C+

Smugglers are becoming very smart day by day. Now they have developed a new technique of sending their messages from one smuggler to another. In their new technology, they are send

Question 1 Write a program that accepts a 3x3 matrix from the user and finds the transpose of it Question 2 Explain Brief about class and objects. Also describe friend functi

Create an array of Strings and fill it with some interesting text, such as vacation destinations, album names, or weapon names from a CRPG. Display three elements of the array on t

The purpose of this assignment is to familiarize you with the notion of encapsulation as well as some aspects of IP and ICMP. Write your programs in C or C++. They will be grade

#include #include #include #include #include //*Variables Used in Programs*// int k; int l; int d; int won; int loss; int cash = 500;

A body which has three forces acting on it is in equilibrium. One force is 3N to the North and the other is 4N to the west. What us the magnitude and direction of the third force?

A palindrome is a string that reads the same from both the ends. Given a string S convert it to a palindrome by doing character replacement. Your task is to convert S to palindrome

find the greater of the two variables, without using conditional loops or ternary operators?