Hello Paul, You could do very small delays by posting a message to a custom message handler. You cannot measure the delay, but it is not depending the timeslice like with the other delay's or a TTimer.
--- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Monday, January 26, 2009, 21:43, Paul wrote: > When I have a very fast connection to an application server, I sometimes get > a 10053 errorcode. > (software caused a connection abort) > Sofar, I was unable to trace it (it doesn't happen during trace) > Since all commands are at most 30 characters, bandwidth control wouldn't > help at all to slow the speed.. > I want to implement a 2 ms delay between each command on a very high > connection speed. > To measure the speed, I will measure the time between start en end of the > transfer (queryperformance timer) > If it's too high, I want a 2 ms delay, but none of the available delays > (sleep(ex), WaitForSingleObject(ex) ot waitFoeMultibleObjects(ex) wotk > reliable for such a small delay. > It's either 0 of 15/16 ms, the latter is most likely the time slice delay. > Has anyone ever found a proper solution for this ? > regards, > Paul -- 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