Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Winsock SendComplete Method
Message
From
16/11/2007 12:34:26
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
 
 
To
All
General information
Forum:
Windows
Category:
Computing in general
Title:
Winsock SendComplete Method
Miscellaneous
Thread ID:
01269456
Message ID:
01269456
Views:
65
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
Map
View

Click here to load this message in the networking platform