Computer Networks Simple Homework 1

Question Description

Three C programs have been posted above. (1) p3client.c is a TCP client, (2) p3server.c is a TCP server, and (3) forwarder.c is a combination of TCP client and server. Given forwarder.c is not working.

To compile the c programs, type “gcc –o p3client p3client.c”, “gcc –o p3server p3server.c”, and “gcc –o forwarder forwarder.c” in a terminal on Linux.

Modify “forwarder.c” as the following:

  1. p3server must start first and wait for a forwarder. Write C codes to establish a connection to p3server. For this connection, you must use TCP client. (50 Points)
  2. Once your forwarder is connected to p3server, a server in the forwarder will start (the related code was given). And then, p3client must start. If you type a word on p3client, p3client will send this word to the forwarder (the related code was given). Write C codes for the forwarder to send this word to p3server (50 points)

To run the programs on Linux, open three terminals, type ./server on the first terminal, ./forwarder on the second terminal and ./client on the third terminal.

Note:

  • Please see the detailed examples on “file 1” posted above
  • Do not modify p3client.c and p3server.c. The modified forwarder.c must be working with the given p3client.c and p3server.c
  • Submission: your forwarder.c
Get 20% Discount on The assignment
Pages (550 words)
Approximate price: -

Try it now!

Get 20% Discount on The Assignment

We'll send you the first draft for approval by at
Total price:
$0.00

How it works?

Follow these simple steps to get your paper done

Place your order

Fill in the order form and provide all details of your assignment.

Proceed with the payment

Choose the payment system that suits you most.

Receive the final file

Once your paper is ready, we will email it to you.

Our Services

EssayBrill has stood as the world’s leading custom essay writing services providers. Once you enter all the details in the order form under the place order button, the rest is up to us.

Essays

Essay Writing Services

At EssayBrill, we prioritize on all aspects that bring about a good grade such as impeccable grammar, proper structure, zero-plagiarism and conformance to guidelines. Our experienced team of writers will help you completed your essays and other assignments.

Admissions

Admission and Business Papers

Be assured that you’ll definitely get accepted to the Master’s level program at any university once you enter all the details in the order form. We won’t leave you here; we will also help you secure a good position in your aspired workplace by creating an outstanding resume or portfolio once you place an order.

Editing

Editing and Proofreading

Our skilled editing and writing team will help you restructure you paper, paraphrase, correct grammar and replace plagiarized sections on your paper just on time. The service is geared toward eliminating any mistakes and rather enhancing better quality.

Coursework

Technical papers

We have writers in almost all fields including the most technical fields. You don’t have to worry about the complexity of your paper. Simply enter as much details as possible in the place order section.