> For NetworkStream,
> what is difference between
> ReadByte() return -1 indicates "end of stream"
>
> and DataAvailable = false?
I *believe* DataAvailable can return false even if the stream isn't
finished. For instance, if you've got an open network connection but
the other end hasn't sent anything, DataAvailable will return false,
but ReadByte will block until it gets more data (or the other end
closes the connection).

Signature
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
World class .NET training in the UK: http://iterativetraining.co.uk