diff options
author | Julius Bünger <buenger@mytum.de> | 2018-09-14 00:38:45 +0200 |
---|---|---|
committer | Julius Bünger <buenger@mytum.de> | 2018-09-14 00:38:45 +0200 |
commit | e91d46cdbbc97414968fa751fd1f596757c56875 (patch) | |
tree | 9edf5fdb72671a479e10a67b35ca7c83718cc7c0 /src/rps/rps.h | |
parent | 60229aa0287024714cebb4a267ea732a883e8812 (diff) | |
download | gnunet-e91d46cdbbc97414968fa751fd1f596757c56875.tar.gz gnunet-e91d46cdbbc97414968fa751fd1f596757c56875.zip |
Add API call to receive unbiased peer stream for debugging and profiling
Diffstat (limited to 'src/rps/rps.h')
-rw-r--r-- | src/rps/rps.h | 41 |
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 | */ | ||
223 | struct 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 | */ | ||
240 | struct 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 | |||
219 | GNUNET_NETWORK_STRUCT_END | 260 | GNUNET_NETWORK_STRUCT_END |
220 | 261 | ||
221 | /*********************************************************************** | 262 | /*********************************************************************** |