simple working example of tcp client/server
simplified the UDP client/server example