Homework1

Make the streamserver/streamclient program pair work.

Here is a source file for a program in Python that implements a *very* simple one-shot echo server.

Here is a source file for a program in Python that implements a *very* simple one-shot echo client.

Note that these two programs are very slightly different from the two handed out in class. What happened is that earlier versions of the Python interpreter would allow two parameters to the connect() method and do the right thing. The newer versions require a single parameter. In the case of address family AF_INET, that parameter is a pair holding the IP address and the port number. I know it's a very fine distinction, but the revised versions of the programs work on old and new Python interpreters. The ones on the sheet of paper you got in class work only on old Pythons (pre 1.7)