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
Project Overview A certain financial institution (bank) wishes to promote its new business products/services by conducting road shows in rural areas. Their aim is to encourage peop

Project Description: Design and prepare software that can navigate a mobile robot using SLAM technique using vision sensor (camera). Skills required are C Programming, Engine

Explain the parts of operators Assignment Operators The equal (=) sign is used for assigning a value to another. The left hand side has to be a variable (lvalue, which exc

Explain what are Unions? The Unions like as structures, contain members whose individual data types may perhaps differ from one another. Though the members that create a union

We move a high quantity of large Video files (200mb - 2 GB each) across the internet. We have a Linux server (ubuntu) hosted in a datacenter (1Gbps) operating an FTP server. Our

C program for function  of average int average(int); void main() {           int max=0,c=0;           clrscr();           printf("ENTER THE LIMIT OF INPUT FOR AV

With this assignment you will build a toy program that manipulates pointers to integers. You will develop the same main program fragment in both C and Assembler. Thus, you'll get t

Greatest Common Divisor (GCD) - The greatest common divisor (GCD) of two integers is the largest integer that will evenly divide both integers. The GCD algorithm involves intege

A: Provided that function parameter is "const reference", compiler create temporary variable in following two ways. a) The actual argument is the correct type, however it isn't

A: this is a procedure during exception handling while the destructor is called for all local objects in the stack among the place where the exception was thrown & where this is ca