Lab3 New
Lab3 New
Overview
In the third lab exercise we have a socket programming task in Python which you
can use as a basis for the course work. The exercise is split in to two parts. First part
is a simple client that talk with the server using TCP and UDP. For this part you are
given a commented template that you can use to complete the task. This part can
be used as a template for the coursework. In the second part you are expected to
create a proxy which relays your message to the server.
1
195.148.20.105 20000 “hello there” ‘
⦁ If you get help from some other group, please make it clear in the comments
or in README. Codes will be checked for plagiarism
Exercise 1
First exercise is to write a simple client, that communicates with the server using
TCP and UDP. Check the code template for more in detail description on what you
need to implement. Program should work in the following way:
1. Reads an address, port and a message from command line arguments
⦁ Basically, your program should start when the following is typed to the
terminal:
⦁ Proxy needs to be a separate python program that you execute in the same
machine as your client.
2
⦁ Proxy needs to print all the messages it forwards and clearly indicate who
sent the message.
⦁ Basically, it should not shut down after it has forwarded the TCP and
UDP transactions once but continue to do so until it is shut down