Argument parsing for client
Fixed a number of errors in optparse.
Basic stream server/client. from beej network tutorial.