1<!--
2    zgossip_msg - ZeroMQ Gossip Protocol
3
4    Codec class for zgossip_msg.
5
6    ** WARNING *************************************************************
7    THIS SOURCE FILE IS 100% GENERATED. If you edit this file, you will lose
8    your changes at the next build cycle. This is great for temporary printf
9    statements. DO NOT MAKE ANY CHANGES YOU WISH TO KEEP. The correct places
10    for commits are:
11
12     * The XML model used for this code generation: zgossip_msg.xml, or
13     * The code generation script that built this file: zproto_codec_c
14    ************************************************************************
15    Copyright (c) the Contributors as noted in the AUTHORS file.
16    This file is part of CZMQ, the high-level C binding for 0MQ:
17    http://czmq.zeromq.org.
18
19    This Source Code Form is subject to the terms of the Mozilla Public
20    License, v. 2.0. If a copy of the MPL was not distributed with this
21    file, You can obtain one at http://mozilla.org/MPL/2.0/.
22 -->
23<class name = "zgossip_msg">
24    <constant name = "hello" value = "1" />
25    <constant name = "publish" value = "2" />
26    <constant name = "ping" value = "3" />
27    <constant name = "pong" value = "4" />
28    <constant name = "invalid" value = "5" />
29
30<constructor>
31    Create a new empty zgossip_msg
32</constructor>
33
34<destructor>
35    Destroy a zgossip_msg instance
36</destructor>
37
38<method name = "recv">
39    Receive a zgossip_msg from the socket. Returns 0 if OK, -1 if
40    there was an error. Blocks if there is no message waiting.
41    <argument name = "input" type = "zsock" />
42    <return type = "integer" />
43</method>
44
45<method name = "send">
46    Send the zgossip_msg to the output socket, does not destroy it
47    <argument name = "output" type = "zsock" />
48    <return type = "integer" />
49</method>
50
51<method name = "print">
52    Print contents of message to stdout
53</method>
54
55<method name = "routing id">
56    Get the message routing id, as a frame
57    <return type = "zframe" />
58</method>
59
60<method name = "set routing id">
61    Set the message routing id from a frame
62    <argument name = "routing id" type = "zframe" />
63</method>
64
65<method name = "id">
66    Get the zgossip_msg message id
67    <return type = "integer" />
68</method>
69
70<method name = "set id">
71    Set the zgossip_msg message id
72    <argument name = "id" type = "integer" />
73</method>
74
75<method name = "command">
76    Get the zgossip_msg message id as printable text
77    <return type = "string" />
78</method>
79
80<method name = "key">
81    Get the key field
82    <return type = "string" />
83</method>
84<method name = "set key">
85    Set the key field
86    <argument name = "key" type = "string" />
87</method>
88<method name = "value">
89    Get the value field
90    <return type = "string" />
91</method>
92<method name = "set value">
93    Set the value field
94    <argument name = "value" type = "string" />
95</method>
96<method name = "ttl">
97    Get the ttl field
98    <return type = "number" size = "4" />
99</method>
100<method name = "set ttl">
101    Set the ttl field
102    <argument name = "ttl" type = "number" size = "4" />
103</method>
104</class>
105