I made a client/server program and I make use of a delay function which consist of Do Events in order to delay the sending of data to the receipient. So far my program is ok.

But when I want to do concurrent sending between client and server, I found out that the Do Event statememnt will prevent my program to intercept incoming data from the winsock control making the sync between client and server fail. How do I solve this problem ? Is there any other method to delay my data sending using winsock without using the Do Event ?

Thanks