diff options
Diffstat (limited to 'src/cadet/gnunet-service-cadet.h')
-rw-r--r-- | src/cadet/gnunet-service-cadet.h | 36 |
1 files changed, 19 insertions, 17 deletions
diff --git a/src/cadet/gnunet-service-cadet.h b/src/cadet/gnunet-service-cadet.h index 8decdba0d..6da0950f1 100644 --- a/src/cadet/gnunet-service-cadet.h +++ b/src/cadet/gnunet-service-cadet.h | |||
@@ -1,4 +1,3 @@ | |||
1 | |||
2 | /* | 1 | /* |
3 | This file is part of GNUnet. | 2 | This file is part of GNUnet. |
4 | Copyright (C) 2001-2017 GNUnet e.V. | 3 | Copyright (C) 2001-2017 GNUnet e.V. |
@@ -64,7 +63,8 @@ struct CadetPeerPath; | |||
64 | /** | 63 | /** |
65 | * Entry in a peer path. | 64 | * Entry in a peer path. |
66 | */ | 65 | */ |
67 | struct CadetPeerPathEntry { | 66 | struct CadetPeerPathEntry |
67 | { | ||
68 | /** | 68 | /** |
69 | * DLL of paths where the same @e peer is at the same offset. | 69 | * DLL of paths where the same @e peer is at the same offset. |
70 | */ | 70 | */ |
@@ -103,7 +103,8 @@ struct CadetPeerPathEntry { | |||
103 | /** | 103 | /** |
104 | * Entry in list of connections used by tunnel, with metadata. | 104 | * Entry in list of connections used by tunnel, with metadata. |
105 | */ | 105 | */ |
106 | struct CadetTConnection { | 106 | struct CadetTConnection |
107 | { | ||
107 | /** | 108 | /** |
108 | * Next in DLL. | 109 | * Next in DLL. |
109 | */ | 110 | */ |
@@ -144,7 +145,8 @@ struct CadetTConnection { | |||
144 | /** | 145 | /** |
145 | * Port opened by a client. | 146 | * Port opened by a client. |
146 | */ | 147 | */ |
147 | struct OpenPort { | 148 | struct OpenPort |
149 | { | ||
148 | /** | 150 | /** |
149 | * Client that opened the port. | 151 | * Client that opened the port. |
150 | */ | 152 | */ |
@@ -266,8 +268,8 @@ extern unsigned long long drop_percent; | |||
266 | * @param env envelope with the message | 268 | * @param env envelope with the message |
267 | */ | 269 | */ |
268 | void | 270 | void |
269 | GSC_send_to_client(struct CadetClient *c, | 271 | GSC_send_to_client (struct CadetClient *c, |
270 | struct GNUNET_MQ_Envelope *env); | 272 | struct GNUNET_MQ_Envelope *env); |
271 | 273 | ||
272 | 274 | ||
273 | /** | 275 | /** |
@@ -278,9 +280,9 @@ GSC_send_to_client(struct CadetClient *c, | |||
278 | * @param ch the channel object | 280 | * @param ch the channel object |
279 | */ | 281 | */ |
280 | void | 282 | void |
281 | GSC_handle_remote_channel_destroy(struct CadetClient *c, | 283 | GSC_handle_remote_channel_destroy (struct CadetClient *c, |
282 | struct GNUNET_CADET_ClientChannelNumber ccn, | 284 | struct GNUNET_CADET_ClientChannelNumber ccn, |
283 | struct CadetChannel *ch); | 285 | struct CadetChannel *ch); |
284 | 286 | ||
285 | /** | 287 | /** |
286 | * A client that created a loose channel that was not bound to a port | 288 | * A client that created a loose channel that was not bound to a port |
@@ -290,8 +292,8 @@ GSC_handle_remote_channel_destroy(struct CadetClient *c, | |||
290 | * @param ch the channel that was lost | 292 | * @param ch the channel that was lost |
291 | */ | 293 | */ |
292 | void | 294 | void |
293 | GSC_drop_loose_channel(const struct GNUNET_HashCode *h_port, | 295 | GSC_drop_loose_channel (const struct GNUNET_HashCode *h_port, |
294 | struct CadetChannel *ch); | 296 | struct CadetChannel *ch); |
295 | 297 | ||
296 | 298 | ||
297 | /** | 299 | /** |
@@ -306,11 +308,11 @@ GSC_drop_loose_channel(const struct GNUNET_HashCode *h_port, | |||
306 | * @return local channel number assigned to the new client | 308 | * @return local channel number assigned to the new client |
307 | */ | 309 | */ |
308 | struct GNUNET_CADET_ClientChannelNumber | 310 | struct GNUNET_CADET_ClientChannelNumber |
309 | GSC_bind(struct CadetClient *c, | 311 | GSC_bind (struct CadetClient *c, |
310 | struct CadetChannel *ch, | 312 | struct CadetChannel *ch, |
311 | struct CadetPeer *dest, | 313 | struct CadetPeer *dest, |
312 | const struct GNUNET_HashCode *port, | 314 | const struct GNUNET_HashCode *port, |
313 | uint32_t options); | 315 | uint32_t options); |
314 | 316 | ||
315 | 317 | ||
316 | /** | 318 | /** |
@@ -320,7 +322,7 @@ GSC_bind(struct CadetClient *c, | |||
320 | * @return string for debugging | 322 | * @return string for debugging |
321 | */ | 323 | */ |
322 | const char * | 324 | const char * |
323 | GSC_2s(struct CadetClient *c); | 325 | GSC_2s (struct CadetClient *c); |
324 | 326 | ||
325 | 327 | ||
326 | #endif | 328 | #endif |