Peter Duniho wrote:
> On Fri, 17 Oct 2008 11:20:05 -0700, Trecius
> <(E-Mail Removed)> wrote:
>
> > In fact, it is a port. 
>
> If by "port", you mean a NetworkStream retrieved from a Socket
> instance, then Rudy is correct...the Length property cannot be
> determined and in fact will always throw a NotSupportedException.
I actually meant a physical port, like an USB port with some kind of
lab device attached, but the kind of port you meant has the same
problems. You simply can't know the amount of data to expect.
After all, data can be read from so many sources. <g>
--
Rudy Velthuis
http://rvelthuis.de
"1001 words say more than one picture" -- Chinese proverb