in reply to Non-linear sub-routine launching

In addition to the fork multi-process model already suggested, you may want to consider using non-blocking sockets with something like POE or Event, both of which are frameworks for writing event-driven programs.
   MeowChow                                   
               s aamecha.s a..a\u$&owag.print
  • Comment on (MeowChow) Re: Non-linear sub-routine launching