Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please help with this c program. This assignment is to be completed individually. The assignment is to be completed using C programming. Task 1: [40
Please help with this c program.
This assignment is to be completed individually. The assignment is to be completed using C programming. Task 1: [40 Points] Write a socket-based Fortune Teller server. You need to create a client-server program, where the server listens to a specified port. When the client request for a connection to the server, the server should accept only if the backlog is not more than 100. After the connection is accepted, the server should select the random fortune for the client from its database of fortunes and send it to the client. The client should then terminate by saying thank you to the server, once it receives the fortune. The server should be able to handle at least 50 client requests simultaneously. The grading will be as follows: Correct connection established/termination between client and server program (10 Points] Creation of appropriate database, server randomly choosing the fortunate from the database. (10 Points] Server able to handle at least 50 clients simultaneously. (10 Points) Successful communication between the client and the server. (10 Points] This assignment is to be completed individually. The assignment is to be completed using C programming. Task 1: [40 Points] Write a socket-based Fortune Teller server. You need to create a client-server program, where the server listens to a specified port. When the client request for a connection to the server, the server should accept only if the backlog is not more than 100. After the connection is accepted, the server should select the random fortune for the client from its database of fortunes and send it to the client. The client should then terminate by saying thank you to the server, once it receives the fortune. The server should be able to handle at least 50 client requests simultaneously. The grading will be as follows: Correct connection established/termination between client and server program (10 Points] Creation of appropriate database, server randomly choosing the fortunate from the database. (10 Points] Server able to handle at least 50 clients simultaneously. (10 Points) Successful communication between the client and the server. (10 Points]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