Ragel for network protocols?

St├ęphane Bortzmeyer bortzme... at gmail.com
Wed Nov 8 15:51:25 UTC 2006


I'm trying to experiment with Ragel for specifying network protocols,
which are often described as state machines.

All the Ragel examples I can find are for parsers, not for protocol
state machines. Reading the documentation, I still cannot write a
state machine for a protocol as simple as:

                        Open
                       /        \
                       /          \
 +--------------+            \  +-------------+
 |                     |            > |                   |
 | Door-closed  |              |  Door-open |
 +--------------+               +-------------+
                       ^            /
                         \          /
                          \        /
                         Close

Any sample code somewhere?



More information about the ragel-users mailing list