Single threaded socket server and socket clients