Hello Arnold, Correct, if I'm not mistaken you in fact only need OnRequestDone to check the flow / errors / do next action.
There you check ErrCode, if > 0 there is server or winsock error. winsock error >= 10000. Also check RequestType to check the state of the component. You probably want to make a case statement around it. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Thursday, July 6, 2006, 11:08, Arnold FLUTEAUX wrote: > Hello Wilfried, > Its true that its OK in sync mode with increasing or decreasing the > timeout but I want to try the async mode. So, I put my code in RequestDone > event and I launch async method step by step in testing the errcode > (parameter of RequestDone). > Are you sure that all errors will pass in requestDone with an ErrCode>0 ? I > test only ErrCode. I dont need to test other things in others events ? > Hello Arnold, >> Its stupid because I had finished my tool !!! I hope that its almost the >> same thing to do ! > If it is finished and working well then no need to change. It is not the > same, but consider for a new project. It is not the same, it is > different, but you have more control and you are very sure your program > is never in some waiting loop. > Just assign code to OnRequestDone event. There you check for server > error or winsock error. In that event you take next action depending on > success or failure of previous action. You probably have to write a > state machine to know the state of the application because you are > always coming in the same event handler. > --- > Rgds, Wilfried [TeamICS] > <http://www.overbyte.be/eng/overbyte/teamics.html> > http://www.overbyte.be/eng/overbyte/teamics.html > http://www.mestdagh.biz > Arnold Fluteaux > Chargé d'Affaires > SCJ Informatique > 02.35.59.22.55 > 06.15.77.70.14 -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be