simple socket framework - and a simple main program,
the server should get a stop mechanism, and the main
converted to a unit test