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
Explain the Macros? Preprocessor' is a translation stage that is applied to your source code before the compiler proper gets its hands on it. Usually the preprocessor performs


Simple program of c++: int main() {    int   bushels;    float dollars, rate;                 cout                 cin >> dollars;                 cout

Hiding overloaded functions We cannot overload a base class function by redefining it in a derived class with a dissimilar argument list. Consider examples to see if similar fu

A: #include // Test to see if pointer hopping is worthwhile. // strlen implemented with usual indexing mechanism. int strlen1( const char str[ ] ) { int i; for( i =

Abstraction is of the process of hiding unwanted details from the user

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

Create a C language code, only one program, to implement the following task. Task: Write C code for a program that implements a digital clock (HH:MM:SS). The clock inclu

2 flowcharts, pseudocode for each (at least 4 algorithms), and code for either a stack or a queuestion..

Given an integer n and a permutation of numbers 1, 2 ... , n-1, n write a program to print the permutation that lexicographically precedes the given input permutation. If the given