aboutsummaryrefslogtreecommitdiff
path: root/src/set/set.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/set/set.h')
-rw-r--r--src/set/set.h28
1 files changed, 18 insertions, 10 deletions
diff --git a/src/set/set.h b/src/set/set.h
index 87fd6efbf..33e0aafdd 100644
--- a/src/set/set.h
+++ b/src/set/set.h
@@ -80,36 +80,42 @@ struct AcceptMessage
80 struct GNUNET_MessageHeader header; 80 struct GNUNET_MessageHeader header;
81 81
82 /** 82 /**
83 * request id of the request we want to accept 83 * Request id that will be sent along with
84 * results for the accepted operation.
85 * Chosen by the client.
86 * Must be 0 if the request has been rejected.
84 */ 87 */
85 uint32_t request_id GNUNET_PACKED; 88 uint32_t request_id GNUNET_PACKED;
86 89
87 /** 90 /**
88 * Zero if the client has rejected the request, 91 * ID of the incoming request we want to accept / reject.
89 * non-zero if it has accepted it
90 */ 92 */
91 uint32_t accepted GNUNET_PACKED; 93 uint32_t accept_id GNUNET_PACKED;
92}; 94};
93 95
94 96
97/**
98 * A request for an operation with another client.
99 */
95struct RequestMessage 100struct RequestMessage
96{ 101{
97 /** 102 /**
98 * Type: GNUNET_MESSAGE_TYPE_SET_Request 103 * Type: GNUNET_MESSAGE_TYPE_SET_Request.
99 */ 104 */
100 struct GNUNET_MessageHeader header; 105 struct GNUNET_MessageHeader header;
101 106
102 /** 107 /**
103 * requesting peer 108 * Identity of the requesting peer.
104 */ 109 */
105 struct GNUNET_PeerIdentity peer_id; 110 struct GNUNET_PeerIdentity peer_id;
106 111
107 /** 112 /**
108 * request id of the request we want to accept 113 * ID of the request we want to accept,
114 * chosen by the service.
109 */ 115 */
110 uint32_t request_id GNUNET_PACKED; 116 uint32_t accept_id GNUNET_PACKED;
111 117
112 /* rest: inner message */ 118 /* rest: nested context message */
113}; 119};
114 120
115 121
@@ -131,7 +137,7 @@ struct EvaluateMessage
131 struct GNUNET_HashCode app_id; 137 struct GNUNET_HashCode app_id;
132 138
133 /** 139 /**
134 * id of our evaluate 140 * id of our evaluate, chosen by the client
135 */ 141 */
136 uint32_t request_id GNUNET_PACKED; 142 uint32_t request_id GNUNET_PACKED;
137 143
@@ -186,6 +192,8 @@ struct ElementMessage
186 192
187 uint16_t element_type GNUNET_PACKED; 193 uint16_t element_type GNUNET_PACKED;
188 194
195 uint16_t reserved GNUNET_PACKED;
196
189 /* rest: the actual element */ 197 /* rest: the actual element */
190}; 198};
191 199