Question
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 or Java 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
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