Answered step by step
Verified Expert Solution
Question
1 Approved Answer
NES416 - Network Programming Programming Assignment 5 Objectives: To implement applications utilizing Threads. Description: In this assignment, you will write a TCP client and a
NES416 - Network Programming Programming Assignment 5 Objectives: To implement applications utilizing Threads. Description: In this assignment, you will write a TCP client and a TCP concurrent server, applications utilizing Threads. Server Requirements: The server provides a high-performance computing facility that performs a single dimensional array operation on behalf of clients. Precisely, the server performs the operation of reverse on array-based arguments passed to the server by clients, and the server returns the result to the calling client consequently. Reverse of an array X = [xl, x2, ..., xm), is [xm ....... x2, xl] The server should print the request# for each request from the client. The server can serve up to a maximum of 4 clients concurrently. To constrain the server to serve only up to 4 concurrent clients, you may want to use Mutexes and Condition Variables Client Requirements: A client program defines an array variable and initializes its values from the standard input by interacting with the user. The client then communicates with the server to perform reversing on the defined array variable. The client outputs the defined array, and the result(reverse) on the standard output, The client can send multiple requests (multiple operations) and receive their results on a single TCP connection with the server. Hints: You are not allowed to use libraries or tools developed by any third party. Put your source files only (no binaries) along with a plain-text file explaining how to compile and run your code in a single compressed file. Submit your compressed file using the link of the E-learning site. Zero grade will be assigned for all programs that will not be compiled or run correctly. Partial credit is given only for working code that does not implement all the requirements. One submission is needed per group. Comment your code as needed. NES416 - Network Programming Programming Assignment 5 Objectives: To implement applications utilizing Threads. Description: In this assignment, you will write a TCP client and a TCP concurrent server, applications utilizing Threads. Server Requirements: The server provides a high-performance computing facility that performs a single dimensional array operation on behalf of clients. Precisely, the server performs the operation of reverse on array-based arguments passed to the server by clients, and the server returns the result to the calling client consequently. Reverse of an array X = [xl, x2, ..., xm), is [xm ....... x2, xl] The server should print the request# for each request from the client. The server can serve up to a maximum of 4 clients concurrently. To constrain the server to serve only up to 4 concurrent clients, you may want to use Mutexes and Condition Variables Client Requirements: A client program defines an array variable and initializes its values from the standard input by interacting with the user. The client then communicates with the server to perform reversing on the defined array variable. The client outputs the defined array, and the result(reverse) on the standard output, The client can send multiple requests (multiple operations) and receive their results on a single TCP connection with the server. Hints: You are not allowed to use libraries or tools developed by any third party. Put your source files only (no binaries) along with a plain-text file explaining how to compile and run your code in a single compressed file. Submit your compressed file using the link of the E-learning site. Zero grade will be assigned for all programs that will not be compiled or run correctly. Partial credit is given only for working code that does not implement all the requirements. One submission is needed per group. Comment your code as needed
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started