> > What is required > > A mechanism to signal the UDP state machine that something is to be sent > A mechanism to signal the caller that it is ok to send > A mechanism to pass the message to send. > A mechanism to ensure the state machine is called periodically. > What I tend to do is have a state machine for each task and repeatedly loop through the various tasks. Each task has an input fifo. Tasks just send messages to other tasks by putting them in the fifo for the destination. Messages need to be completely sent by each task so they don't get intermingled. So, could something like this work? Good luck! Harold --=20 FCC Rules Updated Daily at http://www.hallikainen.com - Advertising opportunities available! --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .