Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Winsock SendComplete Method
Message
De
16/11/2007 12:34:26
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
 
 
À
Tous
Information générale
Forum:
Windows
Catégorie:
Informatique en général
Titre:
Winsock SendComplete Method
Divers
Thread ID:
01269456
Message ID:
01269456
Vues:
66
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.
Répondre
Fil
Voir

Click here to load this message in the networking platform