View Single Post
  #3 (permalink)  
Old 07-09-2009, 6:30 AM
Robert_Zenz's Avatar
Robert_Zenz Robert_Zenz is offline
VB.NET Forum Idol
.NET Framework: .NET 2.0
 
Join Date: Jun 2008
Location: Vienna, Austria
Age: 22
Posts: 503
Reputation: 290
Robert_Zenz master of VB.NETRobert_Zenz master of VB.NETRobert_Zenz master of VB.NETRobert_Zenz master of VB.NETRobert_Zenz master of VB.NETRobert_Zenz master of VB.NETRobert_Zenz master of VB.NETRobert_Zenz master of VB.NETRobert_Zenz master of VB.NET
Default

I'm able to request the size for my purposes (f.e. FTP, POP3) but was wondering if it is really necessary.

I also tried other conditions, f.e. until the amount of read data is zero...but that does not only throw an exception, but does also kill my whole connection with the server. Which is not desirable if you're within a protocol session.
Code:
Loop While read > 0
I've also though of checking if read is smaller then the buffer, but there's the same problem as with DataAvalaible, that I'm faster with reading then the connection is with filling the buffer.

Thanks for replying and in advance,
Bobby
__________________
Don't give TypeCasting Errors a chance, turn ON Option Strict!
Greatest Obfuscator ever: EazFuscator (Freeware)
Greatest Reflection Tool ever: .NET Reflector (Freeware) with Add-Ins
Greatest Introspection Tool ever: Gendarme (GPL)
Greatest MySQL FrontEnd ever: MySQL-Front (Shareware), HeidiSQL (GPL)
Reply With Quote