I am requesting data from a server using TCP Sockets and I do not receieve all the data unless I ask for the data two times. e.g.
Im trying to figure out why the first receieve will not get all of the data?
Code:
Dim cpBytesRec As Int64 = sender2.Receive(bytes) dataFromCp = Encoding.ASCII.GetString(bytes, 0, cpBytesRec) cpBytesRec = sender2.Receive(bytes) dataFromCp += Encoding.ASCII.GetString(bytes, 0, cpBytesRec)
Comment