(First time trying to do socket programming)
I'm trying to read a large buffer using sockets. Is there anything wrong with this psudo code?
Code:DO mySocket.Receive(buff) ' temporary buffer, discard the data WHILE (mySocket.Available > 0)
it terminates after the first iteration because, I suppose, it reads the data faster than the sender is sending it, and Socket.Available will be 0 (if i break the debugger and step through it, it receives the whole buffer). How can i make the Receive call block until more data is available? (I've tried setting Socket.ReceiveTimeout, but it doesn't seem to do any good)




)
Reply With Quote