In-lab Assignment 2

This week you will further enhance your socket programming skills. What's new in this week is the usage of names instead of IPs.

- For the basic assignment you will write 3 programs, namely client, forwarder and server. Initially the server will start listening on a user specified port. Then the forwarder will start execution and it will wait for a connection request again on a user specified port. The client will take forwarder's and server's name and port information and a forwarding string. The client will then connect to the forwarder and send server's name, port and forwarding string. The forwarder will extract the information, thus learn the server's name and port. Finally, the forwarder will connect to server and send the forwarding string. The forwarding string will be printed on server side. You can use code snippets from echoTCP example of last week.