aboutsummaryrefslogtreecommitdiff
path: root/src/rps/rps.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/rps/rps.h')
-rw-r--r--src/rps/rps.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/src/rps/rps.h b/src/rps/rps.h
index 58ba79082..66b2dd962 100644
--- a/src/rps/rps.h
+++ b/src/rps/rps.h
@@ -216,6 +216,47 @@ struct GNUNET_RPS_CS_DEBUG_ViewReply
216}; 216};
217 /* Followed by num_peers * GNUNET_PeerIdentity */ 217 /* Followed by num_peers * GNUNET_PeerIdentity */
218 218
219/**
220 * Message from client to service indicating that
221 * clients wants to get stream of biased peers
222 */
223struct GNUNET_RPS_CS_DEBUG_StreamRequest
224{
225 /**
226 * Header including size and type in NBO
227 */
228 struct GNUNET_MessageHeader header;
229
230 /**
231 * Number of peers
232 * 0 for sending updates until cancellation
233 */
234 uint32_t num_peers GNUNET_PACKED;
235};
236
237/**
238 * Message from service to client containing peer from biased stream
239 */
240struct GNUNET_RPS_CS_DEBUG_StreamReply
241{
242 /**
243 * Header including size and type in NBO
244 */
245 struct GNUNET_MessageHeader header;
246
247 /**
248 * Identifyer of the message.
249 */
250 uint32_t id GNUNET_PACKED;
251
252 /**
253 * @brief The peer of the biased stream
254 */
255 struct GNUNET_PeerIdentity peer;
256
257 // TODO maybe source of peer (pull/push list, peerinfo, ...)
258};
259
219GNUNET_NETWORK_STRUCT_END 260GNUNET_NETWORK_STRUCT_END
220 261
221/*********************************************************************** 262/***********************************************************************