This is what im basically doing
-
Dim tcp as New TcpClient
tcp.Connect("host",80)
Dim ns as NetworkStream = tcp.GetStream
dim size as integer
While ns.DataAvailable
size = ns.read(buffer,0,buffer.length)
End While
-
How do i wait for all the data to be received? Because i end up getting only some of the data then the loop ends.
thanx for any replies
-
Dim tcp as New TcpClient
tcp.Connect("host",80)
Dim ns as NetworkStream = tcp.GetStream
dim size as integer
While ns.DataAvailable
size = ns.read(buffer,0,buffer.length)
End While
-
How do i wait for all the data to be received? Because i end up getting only some of the data then the loop ends.
thanx for any replies