summaryrefslogtreecommitdiff
path: root/src/rps/rps.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/rps/rps.h')
-rw-r--r--src/rps/rps.h39
1 files changed, 25 insertions, 14 deletions
diff --git a/src/rps/rps.h b/src/rps/rps.h
index dee6162be..32e5d07af 100644
--- a/src/rps/rps.h
+++ b/src/rps/rps.h
@@ -40,7 +40,8 @@ GNUNET_NETWORK_STRUCT_BEGIN
40/** 40/**
41 * P2P Message to send PeerIDs to other peer. 41 * P2P Message to send PeerIDs to other peer.
42 */ 42 */
43struct GNUNET_RPS_P2P_PullReplyMessage { 43struct GNUNET_RPS_P2P_PullReplyMessage
44{
44 /** 45 /**
45 * Header including size and type in NBO 46 * Header including size and type in NBO
46 */ 47 */
@@ -63,7 +64,8 @@ struct GNUNET_RPS_P2P_PullReplyMessage {
63/** 64/**
64 * Message from client to service with seed of peers. 65 * Message from client to service with seed of peers.
65 */ 66 */
66struct GNUNET_RPS_CS_SeedMessage { 67struct GNUNET_RPS_CS_SeedMessage
68{
67 /** 69 /**
68 * Header including size and type in NBO 70 * Header including size and type in NBO
69 */ 71 */
@@ -81,7 +83,8 @@ struct GNUNET_RPS_CS_SeedMessage {
81/** 83/**
82 * Message from client to service to turn service malicious. 84 * Message from client to service to turn service malicious.
83 */ 85 */
84struct GNUNET_RPS_CS_ActMaliciousMessage { 86struct GNUNET_RPS_CS_ActMaliciousMessage
87{
85 /** 88 /**
86 * Header including size and type in NBO 89 * Header including size and type in NBO
87 */ 90 */
@@ -116,7 +119,8 @@ struct GNUNET_RPS_CS_ActMaliciousMessage {
116/** 119/**
117 * Message from client to service telling it to start a new sub 120 * Message from client to service telling it to start a new sub
118 */ 121 */
119struct GNUNET_RPS_CS_SubStartMessage { 122struct GNUNET_RPS_CS_SubStartMessage
123{
120 /** 124 /**
121 * Header including size and type in NBO 125 * Header including size and type in NBO
122 */ 126 */
@@ -142,7 +146,8 @@ struct GNUNET_RPS_CS_SubStartMessage {
142/** 146/**
143 * Message from client to service telling it to stop a new sub 147 * Message from client to service telling it to stop a new sub
144 */ 148 */
145struct GNUNET_RPS_CS_SubStopMessage { 149struct GNUNET_RPS_CS_SubStopMessage
150{
146 /** 151 /**
147 * Header including size and type in NBO 152 * Header including size and type in NBO
148 */ 153 */
@@ -161,7 +166,8 @@ struct GNUNET_RPS_CS_SubStopMessage {
161 * Message from client to service indicating that 166 * Message from client to service indicating that
162 * clients wants to get updates of the view 167 * clients wants to get updates of the view
163 */ 168 */
164struct GNUNET_RPS_CS_DEBUG_ViewRequest { 169struct GNUNET_RPS_CS_DEBUG_ViewRequest
170{
165 /** 171 /**
166 * Header including size and type in NBO 172 * Header including size and type in NBO
167 */ 173 */
@@ -177,7 +183,8 @@ struct GNUNET_RPS_CS_DEBUG_ViewRequest {
177/** 183/**
178 * Message from service to client containing current update of view 184 * Message from service to client containing current update of view
179 */ 185 */
180struct GNUNET_RPS_CS_DEBUG_ViewReply { 186struct GNUNET_RPS_CS_DEBUG_ViewReply
187{
181 /** 188 /**
182 * Header including size and type in NBO 189 * Header including size and type in NBO
183 */ 190 */
@@ -199,7 +206,8 @@ struct GNUNET_RPS_CS_DEBUG_ViewReply {
199 * Message from client to service indicating that 206 * Message from client to service indicating that
200 * clients wants to get stream of biased peers 207 * clients wants to get stream of biased peers
201 */ 208 */
202struct GNUNET_RPS_CS_DEBUG_StreamRequest { 209struct GNUNET_RPS_CS_DEBUG_StreamRequest
210{
203 /** 211 /**
204 * Header including size and type in NBO 212 * Header including size and type in NBO
205 */ 213 */
@@ -209,7 +217,8 @@ struct GNUNET_RPS_CS_DEBUG_StreamRequest {
209/** 217/**
210 * Message from service to client containing peer from biased stream 218 * Message from service to client containing peer from biased stream
211 */ 219 */
212struct GNUNET_RPS_CS_DEBUG_StreamReply { 220struct GNUNET_RPS_CS_DEBUG_StreamReply
221{
213 /** 222 /**
214 * Header including size and type in NBO 223 * Header including size and type in NBO
215 */ 224 */
@@ -234,7 +243,8 @@ GNUNET_NETWORK_STRUCT_END
234/** 243/**
235 * Different flags indicating the status of another peer. 244 * Different flags indicating the status of another peer.
236 */ 245 */
237enum Peers_PeerFlags { 246enum Peers_PeerFlags
247{
238 /** 248 /**
239 * If we are waiting for a reply from that peer (sent a pull request). 249 * If we are waiting for a reply from that peer (sent a pull request).
240 */ 250 */
@@ -263,7 +273,8 @@ enum Peers_PeerFlags {
263 * This is needed in order to know what to do with a channel when it's 273 * This is needed in order to know what to do with a channel when it's
264 * destroyed. 274 * destroyed.
265 */ 275 */
266enum Peers_ChannelFlags { 276enum Peers_ChannelFlags
277{
267 /** 278 /**
268 * We destroyed the channel because the other peer established a second one. 279 * We destroyed the channel because the other peer established a second one.
269 */ 280 */
@@ -285,7 +296,8 @@ enum Peers_ChannelFlags {
285/** 296/**
286 * @brief The role of a channel. Sending or receiving. 297 * @brief The role of a channel. Sending or receiving.
287 */ 298 */
288enum Peers_ChannelRole { 299enum Peers_ChannelRole
300{
289 /** 301 /**
290 * Channel is used for sending 302 * Channel is used for sending
291 */ 303 */
@@ -303,7 +315,7 @@ enum Peers_ChannelRole {
303 * @param cls closure 315 * @param cls closure
304 * @param peer peer to execute function on 316 * @param peer peer to execute function on
305 */ 317 */
306typedef void (* PeerOp) (void *cls, const struct GNUNET_PeerIdentity *peer); 318typedef void (*PeerOp) (void *cls, const struct GNUNET_PeerIdentity *peer);
307 319
308/** 320/**
309 * @brief Iterator over valid peers. 321 * @brief Iterator over valid peers.
@@ -323,4 +335,3 @@ typedef int
323 * Handle to the statistics service. 335 * Handle to the statistics service.
324 */ 336 */
325extern struct GNUNET_STATISTICS_Handle *stats; 337extern struct GNUNET_STATISTICS_Handle *stats;
326