Multithreaded client server with random messages sent across