aboutsummaryrefslogtreecommitdiff
path: root/src/rps/rps.h
diff options
context:
space:
mode:
authorJulius Bünger <buenger@mytum.de>2018-03-05 18:25:39 +0100
committerJulius Bünger <buenger@mytum.de>2018-03-05 18:34:35 +0100
commit132597e5050e591617cd4e303015608ff503d879 (patch)
treef8cebacaf2915bdcf812a89608ec90d540cca170 /src/rps/rps.h
parentd036b626b8eea15f99d91faf309843936289fde7 (diff)
downloadgnunet-132597e5050e591617cd4e303015608ff503d879.tar.gz
gnunet-132597e5050e591617cd4e303015608ff503d879.zip
rps: add debug function to api to get view of service
Diffstat (limited to 'src/rps/rps.h')
-rw-r--r--src/rps/rps.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/src/rps/rps.h b/src/rps/rps.h
index f5cc2e8d1..6a7fa3e14 100644
--- a/src/rps/rps.h
+++ b/src/rps/rps.h
@@ -176,6 +176,49 @@ struct GNUNET_RPS_CS_ActMaliciousMessage
176#endif /* ENABLE_MALICIOUS */ 176#endif /* ENABLE_MALICIOUS */
177 177
178 178
179/* Debug messages */
180
181/**
182 * Message from client to service indicating that
183 * clients wants to get updates of the view
184 */
185struct GNUNET_RPS_CS_DEBUG_ViewRequest
186{
187 /**
188 * Header including size and type in NBO
189 */
190 struct GNUNET_MessageHeader header;
191
192 /**
193 * Number of updates
194 * 0 for sending updates until cancellation
195 */
196 uint32_t num_updates GNUNET_PACKED;
197};
198
199/**
200 * Message from service to client containing current update of view
201 */
202struct GNUNET_RPS_CS_DEBUG_ViewReply
203{
204 /**
205 * Header including size and type in NBO
206 */
207 struct GNUNET_MessageHeader header;
208
209 /**
210 * Identifyer of the message.
211 */
212 uint32_t id GNUNET_PACKED;
213
214 /**
215 * Number of peers in the view
216 */
217 uint64_t num_peers GNUNET_PACKED;
218};
219 /* Followed by num_peers * GNUNET_PeerIdentity */
220
221
179/*********************************************************************** 222/***********************************************************************
180 * Defines from old gnunet-service-rps_peers.h 223 * Defines from old gnunet-service-rps_peers.h
181***********************************************************************/ 224***********************************************************************/