diff options
Diffstat (limited to 'src/rps/rps.h')
-rw-r--r-- | src/rps/rps.h | 46 |
1 files changed, 17 insertions, 29 deletions
diff --git a/src/rps/rps.h b/src/rps/rps.h index 5bfef93b0..dee6162be 100644 --- a/src/rps/rps.h +++ b/src/rps/rps.h | |||
@@ -11,7 +11,7 @@ | |||
11 | WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 | Affero General Public License for more details. | 13 | Affero General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU Affero General Public License | 15 | You should have received a copy of the GNU Affero General Public License |
16 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
17 | 17 | ||
@@ -34,14 +34,13 @@ | |||
34 | GNUNET_NETWORK_STRUCT_BEGIN | 34 | GNUNET_NETWORK_STRUCT_BEGIN |
35 | 35 | ||
36 | /*********************************************************************** | 36 | /*********************************************************************** |
37 | * P2P Messages | 37 | * P2P Messages |
38 | ***********************************************************************/ | 38 | ***********************************************************************/ |
39 | 39 | ||
40 | /** | 40 | /** |
41 | * P2P Message to send PeerIDs to other peer. | 41 | * P2P Message to send PeerIDs to other peer. |
42 | */ | 42 | */ |
43 | struct GNUNET_RPS_P2P_PullReplyMessage | 43 | struct GNUNET_RPS_P2P_PullReplyMessage { |
44 | { | ||
45 | /** | 44 | /** |
46 | * Header including size and type in NBO | 45 | * Header including size and type in NBO |
47 | */ | 46 | */ |
@@ -58,14 +57,13 @@ struct GNUNET_RPS_P2P_PullReplyMessage | |||
58 | 57 | ||
59 | 58 | ||
60 | /*********************************************************************** | 59 | /*********************************************************************** |
61 | * Client-Service Messages | 60 | * Client-Service Messages |
62 | ***********************************************************************/ | 61 | ***********************************************************************/ |
63 | 62 | ||
64 | /** | 63 | /** |
65 | * Message from client to service with seed of peers. | 64 | * Message from client to service with seed of peers. |
66 | */ | 65 | */ |
67 | struct GNUNET_RPS_CS_SeedMessage | 66 | struct GNUNET_RPS_CS_SeedMessage { |
68 | { | ||
69 | /** | 67 | /** |
70 | * Header including size and type in NBO | 68 | * Header including size and type in NBO |
71 | */ | 69 | */ |
@@ -83,8 +81,7 @@ struct GNUNET_RPS_CS_SeedMessage | |||
83 | /** | 81 | /** |
84 | * Message from client to service to turn service malicious. | 82 | * Message from client to service to turn service malicious. |
85 | */ | 83 | */ |
86 | struct GNUNET_RPS_CS_ActMaliciousMessage | 84 | struct GNUNET_RPS_CS_ActMaliciousMessage { |
87 | { | ||
88 | /** | 85 | /** |
89 | * Header including size and type in NBO | 86 | * Header including size and type in NBO |
90 | */ | 87 | */ |
@@ -119,8 +116,7 @@ struct GNUNET_RPS_CS_ActMaliciousMessage | |||
119 | /** | 116 | /** |
120 | * Message from client to service telling it to start a new sub | 117 | * Message from client to service telling it to start a new sub |
121 | */ | 118 | */ |
122 | struct GNUNET_RPS_CS_SubStartMessage | 119 | struct GNUNET_RPS_CS_SubStartMessage { |
123 | { | ||
124 | /** | 120 | /** |
125 | * Header including size and type in NBO | 121 | * Header including size and type in NBO |
126 | */ | 122 | */ |
@@ -146,8 +142,7 @@ struct GNUNET_RPS_CS_SubStartMessage | |||
146 | /** | 142 | /** |
147 | * Message from client to service telling it to stop a new sub | 143 | * Message from client to service telling it to stop a new sub |
148 | */ | 144 | */ |
149 | struct GNUNET_RPS_CS_SubStopMessage | 145 | struct GNUNET_RPS_CS_SubStopMessage { |
150 | { | ||
151 | /** | 146 | /** |
152 | * Header including size and type in NBO | 147 | * Header including size and type in NBO |
153 | */ | 148 | */ |
@@ -166,8 +161,7 @@ struct GNUNET_RPS_CS_SubStopMessage | |||
166 | * Message from client to service indicating that | 161 | * Message from client to service indicating that |
167 | * clients wants to get updates of the view | 162 | * clients wants to get updates of the view |
168 | */ | 163 | */ |
169 | struct GNUNET_RPS_CS_DEBUG_ViewRequest | 164 | struct GNUNET_RPS_CS_DEBUG_ViewRequest { |
170 | { | ||
171 | /** | 165 | /** |
172 | * Header including size and type in NBO | 166 | * Header including size and type in NBO |
173 | */ | 167 | */ |
@@ -183,8 +177,7 @@ struct GNUNET_RPS_CS_DEBUG_ViewRequest | |||
183 | /** | 177 | /** |
184 | * Message from service to client containing current update of view | 178 | * Message from service to client containing current update of view |
185 | */ | 179 | */ |
186 | struct GNUNET_RPS_CS_DEBUG_ViewReply | 180 | struct GNUNET_RPS_CS_DEBUG_ViewReply { |
187 | { | ||
188 | /** | 181 | /** |
189 | * Header including size and type in NBO | 182 | * Header including size and type in NBO |
190 | */ | 183 | */ |
@@ -200,14 +193,13 @@ struct GNUNET_RPS_CS_DEBUG_ViewReply | |||
200 | */ | 193 | */ |
201 | uint64_t num_peers GNUNET_PACKED; | 194 | uint64_t num_peers GNUNET_PACKED; |
202 | }; | 195 | }; |
203 | /* Followed by num_peers * GNUNET_PeerIdentity */ | 196 | /* Followed by num_peers * GNUNET_PeerIdentity */ |
204 | 197 | ||
205 | /** | 198 | /** |
206 | * Message from client to service indicating that | 199 | * Message from client to service indicating that |
207 | * clients wants to get stream of biased peers | 200 | * clients wants to get stream of biased peers |
208 | */ | 201 | */ |
209 | struct GNUNET_RPS_CS_DEBUG_StreamRequest | 202 | struct GNUNET_RPS_CS_DEBUG_StreamRequest { |
210 | { | ||
211 | /** | 203 | /** |
212 | * Header including size and type in NBO | 204 | * Header including size and type in NBO |
213 | */ | 205 | */ |
@@ -217,8 +209,7 @@ struct GNUNET_RPS_CS_DEBUG_StreamRequest | |||
217 | /** | 209 | /** |
218 | * Message from service to client containing peer from biased stream | 210 | * Message from service to client containing peer from biased stream |
219 | */ | 211 | */ |
220 | struct GNUNET_RPS_CS_DEBUG_StreamReply | 212 | struct GNUNET_RPS_CS_DEBUG_StreamReply { |
221 | { | ||
222 | /** | 213 | /** |
223 | * Header including size and type in NBO | 214 | * Header including size and type in NBO |
224 | */ | 215 | */ |
@@ -237,14 +228,13 @@ struct GNUNET_RPS_CS_DEBUG_StreamReply | |||
237 | GNUNET_NETWORK_STRUCT_END | 228 | GNUNET_NETWORK_STRUCT_END |
238 | 229 | ||
239 | /*********************************************************************** | 230 | /*********************************************************************** |
240 | * Defines from old gnunet-service-rps_peers.h | 231 | * Defines from old gnunet-service-rps_peers.h |
241 | ***********************************************************************/ | 232 | ***********************************************************************/ |
242 | 233 | ||
243 | /** | 234 | /** |
244 | * Different flags indicating the status of another peer. | 235 | * Different flags indicating the status of another peer. |
245 | */ | 236 | */ |
246 | enum Peers_PeerFlags | 237 | enum Peers_PeerFlags { |
247 | { | ||
248 | /** | 238 | /** |
249 | * If we are waiting for a reply from that peer (sent a pull request). | 239 | * If we are waiting for a reply from that peer (sent a pull request). |
250 | */ | 240 | */ |
@@ -273,8 +263,7 @@ enum Peers_PeerFlags | |||
273 | * This is needed in order to know what to do with a channel when it's | 263 | * This is needed in order to know what to do with a channel when it's |
274 | * destroyed. | 264 | * destroyed. |
275 | */ | 265 | */ |
276 | enum Peers_ChannelFlags | 266 | enum Peers_ChannelFlags { |
277 | { | ||
278 | /** | 267 | /** |
279 | * We destroyed the channel because the other peer established a second one. | 268 | * We destroyed the channel because the other peer established a second one. |
280 | */ | 269 | */ |
@@ -296,8 +285,7 @@ enum Peers_ChannelFlags | |||
296 | /** | 285 | /** |
297 | * @brief The role of a channel. Sending or receiving. | 286 | * @brief The role of a channel. Sending or receiving. |
298 | */ | 287 | */ |
299 | enum Peers_ChannelRole | 288 | enum Peers_ChannelRole { |
300 | { | ||
301 | /** | 289 | /** |
302 | * Channel is used for sending | 290 | * Channel is used for sending |
303 | */ | 291 | */ |