Hi, I am currently using the OnDataSent event of TWSocket to signal my state machine to move on. This is working mostly, however, sometimes, the event does not happen.
Now, at the far side, the server being connected to closes the connection when it has it's data, so I am thinking that this close will sometimes mask the OnDataSent. It is happening about 1 packet in 40, each packet being 60 bytes. Some of the servers will not close the connection after a packet, and some do, some servers send a acknowledge packet back, so I need a reliable method of testing that the data has gone, before I can proceed in the state machine. Is hooking the disconnect event a valid approach if the OnDataSent event does not fire? Regards, Andy -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be