Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Winsock Getdata buffer not clearing

Status
Not open for further replies.

TrueCode

MIS
Sep 30, 2003
71
LC
I have a routine on a form that seeks to close all connected clients. The message is so coded that upon receipt the client executes its local closedown routine. I am finding that the first message goes fine to the first client (I scanned the server for opened connections then send the message to shut on each socket), however thesecond client receives more than one message in its getdata buffer. That creates an error. How do I solve that?

------------------------------------->

"I have sought your assistance on this matter because I have exhausted all the help that I can find. You are free to direct me to other source of help"
 
TrueCode,

Can you post some code? Specifically the client code where you send a message off and wait for a response.

Also, the server code where you flip through all active connections and send the shutdown message.

Managing VFP and the Active X Winsock events can be tricky and a lot of times you will need to set _VFP.Autoyield = .F. and use DOEVENTS() to get the events to fire properly.

Andy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top