Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Category:
Computing in general
Title:
Winsock SendComplete Method
We have a problem that we have a static wait in our code to make sure we've allowed enough time for data to be sent to a port and acknowledgment received back. We would rather have it depending on when the information was complete to have it be more efficient. I put code into a DO...WHILE loop in the SendData method that checked the value of a public variable for a period of time. The value of the variable was changed when the Acknowledgment came back. Problem is that Foxpro gets all discombobulated and throws errors about IF...ENDIF are missing, etc. I think this is because when the public variable is set and the loop exits, Foxpro thinks the code path is different. Not sure exactly as it doesn't trace that way. My real need is to find the best way to wait to send the next piece of data only after the previous one has been processed. I think the SendComplete method will help, but I'm not sure how to utilize it.
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only