Yes, I ended up trying some thimg very similardo { bytesRead = sock.Receive(byReceive, byReceive.Length, 0); totalRead += bytesRead; Thread.Sleep(100); strRetPage = strRetPage + Encoding.ASCII.GetString(byReceive, 0, bytesRead); } while( sock.Available > 0 );
Now the problem is that without the Sleep it reads the socket once and bails out. Another problem is that 10% of the time the socket claims to be empty and receives nothing. I have little hair left to pull out :) -- modified at 21:17 Thursday 22nd December, 2005