HW1: Socket Programming

Hi all,

Just a couple more instructions for the first HW. As mentioned in the class, I would like you guys to install linux (any version) and try to write a pair of client and server python scripts to do the following.

  1. Server script should run in one terminal and wait for a client to connect to it.

  2. Client script should run on another terminal.

  3. Server script will send a hello message (whatever you like, maybe your name) to the client.

  4. The client will print out the message and exit.

You should using socket API to implement the scripts. If you get stuck, you may check out the following book if you got stuck.

http://www.amazon.com/Foundations-Python-Network-Programming-Brandon/dp/1430258543/ref=sr_1_1?ie=UTF8&qid=1453331252&sr=8-1&keywords=python+network+programming

Before the beginning of next class, please send me screenshots (better still a screencast) of you running the server and client scripts.

Cheers,

Sam