<!--
    Message formats for MDP/Client protocol 0.1

    To generate code from this:
    gsl mdp_client.xml

    To understand the code generator
    vim codec_c.gsl
    -->

<class name = "mdp_client" script = "codec_c">
    MDP/Client
    <header>
        <field name = "empty" type = "string" value = "">Empty frame</field>
        <field name = "protocol" type = "string" value = "MDPC01">Protocol identifier</field>
    </header>
    <message name = "request">
        Client request to broker
        <field name = "service" type = "string">Service name</field>
        <field name = "body" type = "frame">Request body</field>
    </message>
    <message name = "reply">
        Response back to client
        <field name = "service" type = "string">Service name</field>
        <field name = "body" type = "frame">Response body</field>
    </message>
</class>
