Use read() in posix to ensure we get a valid response... recv() works like read() under Windows, so that part was fine...