>i'm working on a project in which i need stuff to happen event driven.
>i send requests to a server, and have to wait for a respons before 
>sending a new event,
>and ofcourse this new event can depend on the previous respons.
I almost always use a state engine for something like this. The state 
engine manages itself until its done with the whole chain of events you 
need, then taps the main thread on the shoulder and says "Here's your 
result".

I can dig up an example if you want...
[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
[email protected]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]

Reply via email to