Made it multithreaded with handles on top of the sockets
Got client reading data from server
Added more cleanup code