Originally posted by Wokawidget
When you send data using winsock the code execution carries on to the code once the data has been sent, regardless if it's been received or not by the server winsock connection.
Is it possible, WITHOUT writting wrapper classes, to use the SendData sub like a function...ie, you send data, but code execution stops until the server app sends data back to the client winsock??

Woka
perhaps you can divide the execting code into 2 subs (or functions) and call the one which sends the data via winsock, and then all the rest of the code to be executed put into the second sub/function. call it on the data arrival event of the winsock if the data coming back is the data you were waiting for... avoids the timers and loops