Next | Tricks of the Wizards | 177 |
In a state machine, the program tracks a `current state'
It has a table that says, for each possible state and each possible input type:
What state to be in next
An action to perform
For example, suppose we're writing an NNTP server:
Next | Copyright © 2003 M. J. Dominus |