Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a client and a server program where the server can be connected by one client at a time. The client will send a message

Write a client and a server program where the server can be connected by one client at a time. The client will send a message (a complete sentence) to the server and the server will count the total number of vowels present in that message and will return that number to the client. The client will print that number. If the client wants to close the connection, it will send Bye message to the server. Upon receiving that message, the server will close that particular connection. Requirements: 1. Create a C based client-server architecture using sockets 2. The server should be able to accept and service multiple clients requests one at a time 3. The server should be run on cse01.cse.unt.edu machine and the clients should be run on any machine between cse02.cse.unt.edu and cse06.cse.unt.edu. The IP address of cse01.cse.unt.edu is 129.120.151.94 Example: Client sends a message A quick brown fox jumps over the lazy dog to the server. The sever counts the number of vowels present in that message, i.e. 11. It sends that number to the corresponding client. The client then prints the message The number of vowels present is 11. Instructions: Compile your programs (both client and server) and make sure they are working. Your code should be well commented and indented. Create a Readme file (text file) and write how to compile and execute your code. Please create a zip archive of your assignment folder (code, header files if any and Readme file) and upload the zip file. Not following the above instructions could result up to 20% deduction from your programming assignment score. Late submissions are not allowed.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Intelligent Information And Database Systems Asian Conference Aciids 2012 Kaohsiung Taiwan March 19 21 2012 Proceedings Part 3 Lnai 7198

Authors: Jeng-Shyang Pan ,Shyi-Ming Chen ,Ngoc-Thanh Nguyen

2012th Edition

3642284922, 978-3642284922

More Books

Students also viewed these Databases questions

Question

2. Why has the conflict escalated?

Answered: 1 week ago

Question

1. What might have led to the misinformation?

Answered: 1 week ago