Take a look at the zpipes_server.xml in zbroker. Also, the README for
zproto describes the state machine features.

You can use "*" to mean "any ZeroMQ message", and you can use
inheritance to apply that easily to all relevant states.

-Pieter

On Tue, Apr 15, 2014 at 1:29 PM, Brian Knox <[email protected]> wrote:
> Is there a state in zproto for “any valid zeromq message”?
>
>
>
> My case is this:  I have back end daemon the processes some stats messages
> for a small project.  The messages are sent over zeromq using the node.js
> bindings, and consist of a single frame containing a JSON string.   I would
> like to play with using zproto to generate a new version of the back end
> daemon, but I’m not in a position of being able to change the zeromq
> messages I’m receiving.  I’d like the functional equivament of:
>
>
>
> <state name = “start”>
>
> <event name = “ANY_ZEROMQ_MESSAGE” next = “start”>
>
>                <action name = “stuff” />
>
> </event>
>
> </state>
>
>
>
>
>
>
>
>
>
>
> _______________________________________________
> zeromq-dev mailing list
> [email protected]
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to