The Nightstar Zoo

Nightstar IRC Network - irc.nightstar.net
It is currently Sun Apr 23, 2017 12:34 am

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Nested state machines
PostPosted: Sun Nov 20, 2005 7:11 am 
Offline
Safari Exhibit
Safari Exhibit
User avatar

Joined: Mon Feb 07, 2005 3:48 am
Posts: 151
Location: Durban, South Africa
So, I'm still writing this dialup/mailgrab/whatever php script. Well, I'm rewriting it because the original version was a nasty cruft of hacks.

It's basically driven by a state machine with four states:

Code:
DISCONNECTED
CONNECTING
CONNECTED
FETCHMAIL


However, the FETCHMAIL state needs to send mail, fetch mail and send mail again, necessitating a state machine for that, with three states:

Code:
SEND1
FETCH
SEND2


My question: Should I leave this as a nested state machine, expand it out into three mail-handling states in the main state machine or drop all the mail stuff into a shell script instead of doing it in the php?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group