Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Reverse-echo-serve and client : in this programming assignment, you are going to build a simple reverse echo server and a client using TCP socket. The

Reverse-echo-serve and client: in this programming assignment, you are going to build a simple reverse echo server and a client using TCP socket. The server and client should run at different machines.

1) Reverse echo server

A reverse echo server receives a message from a client over TCP socket and replies the same message back to the source in reverse order. For example, if a sever gets a message GOOD from a client, then the reverse echo server sends back the message DOOG to the client.

The server program should be terminated if it gets end message from a client after it replies dne message to the client. Note that please use port number over 5000.

A reverse echo server begins by a user at any machines by a command line:

2) Echo Client

An echo client gets a message from a user and sends the message to the connected reverse echo server. When the reversed message is arrived from the server, it displays the message to the users.

If a user wants to stop the client program, the user types end to the client. The client sends the message to the reverse echo server, and waits the message dne from the server. If the client gets the message dne, it terminates itself with displaying dne message.

The echo client is started by the following command line:

Submission

The deliverable for this lab exercise includes the following files:

Written C-programming codes for Server and Client program such as yourNameServer.c and yourNameClinet.c

Submit the Client and Server c files and a screenshot of your demo into the dropbox (Lab1) of Assignments

Reference book: TCP/IP Sockets in C practical guide for programmers by Michael J. Donahoo and Kenneth L. Calvert.

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

Database Design Application And Administration

Authors: Michael Mannino, Michael V. Mannino

2nd Edition

0072880678, 9780072880670

More Books

Students also viewed these Databases questions