diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-09-12 11:31:50 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-09-12 11:31:50 +0000 |
commit | 02ccdcf0ef5c039224a397f057b2a76f54364d92 (patch) | |
tree | db9e4faee6831b965fedb5648915a556be5ff091 /src/cadet/gnunet-service-cadet_channel.h | |
parent | 17987cc9db00b169dd8bff5a620e5d5ab51ff044 (diff) | |
download | gnunet-02ccdcf0ef5c039224a397f057b2a76f54364d92.tar.gz gnunet-02ccdcf0ef5c039224a397f057b2a76f54364d92.zip |
realigning CADET messages and bumping message types to avoid interactions with incompatible old versions complicating diagnostics
Diffstat (limited to 'src/cadet/gnunet-service-cadet_channel.h')
-rw-r--r-- | src/cadet/gnunet-service-cadet_channel.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/cadet/gnunet-service-cadet_channel.h b/src/cadet/gnunet-service-cadet_channel.h index cc1eb4d8a..eeea02712 100644 --- a/src/cadet/gnunet-service-cadet_channel.h +++ b/src/cadet/gnunet-service-cadet_channel.h | |||
@@ -211,6 +211,7 @@ GCCH_handle_local_destroy (struct CadetChannel *ch, | |||
211 | struct CadetClient *c, | 211 | struct CadetClient *c, |
212 | int is_root); | 212 | int is_root); |
213 | 213 | ||
214 | |||
214 | /** | 215 | /** |
215 | * Handle a channel create requested by a client. | 216 | * Handle a channel create requested by a client. |
216 | * | 217 | * |
@@ -219,7 +220,7 @@ GCCH_handle_local_destroy (struct CadetChannel *ch, | |||
219 | * @param c Client that requested the creation (will be the root). | 220 | * @param c Client that requested the creation (will be the root). |
220 | * @param msg Create Channel message. | 221 | * @param msg Create Channel message. |
221 | * | 222 | * |
222 | * @return GNUNET_OK if everything went fine, GNUNET_SYSERR otherwise. | 223 | * @return #GNUNET_OK if everything went fine, #GNUNET_SYSERR otherwise. |
223 | */ | 224 | */ |
224 | int | 225 | int |
225 | GCCH_handle_local_create (struct CadetClient *c, | 226 | GCCH_handle_local_create (struct CadetClient *c, |
@@ -240,6 +241,7 @@ GCCH_handle_data (struct CadetChannel *ch, | |||
240 | const struct GNUNET_CADET_Data *msg, | 241 | const struct GNUNET_CADET_Data *msg, |
241 | int fwd); | 242 | int fwd); |
242 | 243 | ||
244 | |||
243 | /** | 245 | /** |
244 | * Handler for cadet network traffic end-to-end ACKs. | 246 | * Handler for cadet network traffic end-to-end ACKs. |
245 | * | 247 | * |
@@ -255,6 +257,7 @@ GCCH_handle_data_ack (struct CadetChannel *ch, | |||
255 | const struct GNUNET_CADET_DataACK *msg, | 257 | const struct GNUNET_CADET_DataACK *msg, |
256 | int fwd); | 258 | int fwd); |
257 | 259 | ||
260 | |||
258 | /** | 261 | /** |
259 | * Handler for channel create messages. | 262 | * Handler for channel create messages. |
260 | * | 263 | * |
@@ -267,6 +270,7 @@ struct CadetChannel * | |||
267 | GCCH_handle_create (struct CadetTunnel *t, | 270 | GCCH_handle_create (struct CadetTunnel *t, |
268 | const struct GNUNET_CADET_ChannelCreate *msg); | 271 | const struct GNUNET_CADET_ChannelCreate *msg); |
269 | 272 | ||
273 | |||
270 | /** | 274 | /** |
271 | * Handler for channel NACK messages. | 275 | * Handler for channel NACK messages. |
272 | * | 276 | * |
@@ -277,6 +281,7 @@ GCCH_handle_create (struct CadetTunnel *t, | |||
277 | void | 281 | void |
278 | GCCH_handle_nack (struct CadetChannel *ch); | 282 | GCCH_handle_nack (struct CadetChannel *ch); |
279 | 283 | ||
284 | |||
280 | /** | 285 | /** |
281 | * Handler for channel ack messages. | 286 | * Handler for channel ack messages. |
282 | * | 287 | * |
@@ -292,6 +297,7 @@ GCCH_handle_ack (struct CadetChannel *ch, | |||
292 | const struct GNUNET_CADET_ChannelManage *msg, | 297 | const struct GNUNET_CADET_ChannelManage *msg, |
293 | int fwd); | 298 | int fwd); |
294 | 299 | ||
300 | |||
295 | /** | 301 | /** |
296 | * Handler for channel destroy messages. | 302 | * Handler for channel destroy messages. |
297 | * | 303 | * |
@@ -307,6 +313,7 @@ GCCH_handle_destroy (struct CadetChannel *ch, | |||
307 | const struct GNUNET_CADET_ChannelManage *msg, | 313 | const struct GNUNET_CADET_ChannelManage *msg, |
308 | int fwd); | 314 | int fwd); |
309 | 315 | ||
316 | |||
310 | /** | 317 | /** |
311 | * Sends an already built message on a channel. | 318 | * Sends an already built message on a channel. |
312 | * | 319 | * |
@@ -328,6 +335,7 @@ GCCH_send_prebuilt_message (const struct GNUNET_MessageHeader *message, | |||
328 | struct CadetChannel *ch, int fwd, | 335 | struct CadetChannel *ch, int fwd, |
329 | void *existing_copy); | 336 | void *existing_copy); |
330 | 337 | ||
338 | |||
331 | /** | 339 | /** |
332 | * Get the static string for identification of the channel. | 340 | * Get the static string for identification of the channel. |
333 | * | 341 | * |