aboutsummaryrefslogtreecommitdiff
path: root/src/cadet/gnunet-service-cadet_channel.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/cadet/gnunet-service-cadet_channel.h')
-rw-r--r--src/cadet/gnunet-service-cadet_channel.h46
1 files changed, 23 insertions, 23 deletions
diff --git a/src/cadet/gnunet-service-cadet_channel.h b/src/cadet/gnunet-service-cadet_channel.h
index f5a89a423..a472669c5 100644
--- a/src/cadet/gnunet-service-cadet_channel.h
+++ b/src/cadet/gnunet-service-cadet_channel.h
@@ -59,7 +59,7 @@ struct CadetChannel;
59 * @param ch Channel to destroy. 59 * @param ch Channel to destroy.
60 */ 60 */
61void 61void
62GMCH_destroy (struct CadetChannel *ch); 62GCCH_destroy (struct CadetChannel *ch);
63 63
64 64
65/** 65/**
@@ -70,7 +70,7 @@ GMCH_destroy (struct CadetChannel *ch);
70 * @return ID used to identify the channel with the remote peer. 70 * @return ID used to identify the channel with the remote peer.
71 */ 71 */
72CADET_ChannelNumber 72CADET_ChannelNumber
73GMCH_get_id (const struct CadetChannel *ch); 73GCCH_get_id (const struct CadetChannel *ch);
74 74
75/** 75/**
76 * Get the channel tunnel. 76 * Get the channel tunnel.
@@ -80,7 +80,7 @@ GMCH_get_id (const struct CadetChannel *ch);
80 * @return tunnel of the channel. 80 * @return tunnel of the channel.
81 */ 81 */
82struct CadetTunnel3 * 82struct CadetTunnel3 *
83GMCH_get_tunnel (const struct CadetChannel *ch); 83GCCH_get_tunnel (const struct CadetChannel *ch);
84 84
85/** 85/**
86 * Get free buffer space towards the client on a specific channel. 86 * Get free buffer space towards the client on a specific channel.
@@ -91,7 +91,7 @@ GMCH_get_tunnel (const struct CadetChannel *ch);
91 * @return Free buffer space [0 - 64] 91 * @return Free buffer space [0 - 64]
92 */ 92 */
93unsigned int 93unsigned int
94GMCH_get_buffer (struct CadetChannel *ch, int fwd); 94GCCH_get_buffer (struct CadetChannel *ch, int fwd);
95 95
96 96
97/** 97/**
@@ -103,7 +103,7 @@ GMCH_get_buffer (struct CadetChannel *ch, int fwd);
103 * @return #GNUNET_YES if client is allowed to send us data. 103 * @return #GNUNET_YES if client is allowed to send us data.
104 */ 104 */
105int 105int
106GMCH_get_allowed (struct CadetChannel *ch, int fwd); 106GCCH_get_allowed (struct CadetChannel *ch, int fwd);
107 107
108 108
109/** 109/**
@@ -115,7 +115,7 @@ GMCH_get_allowed (struct CadetChannel *ch, int fwd);
115 * @return #GNUNET_YES in case it is. 115 * @return #GNUNET_YES in case it is.
116 */ 116 */
117int 117int
118GMCH_is_origin (struct CadetChannel *ch, int fwd); 118GCCH_is_origin (struct CadetChannel *ch, int fwd);
119 119
120/** 120/**
121 * Is the destination client for this channel on this peer? 121 * Is the destination client for this channel on this peer?
@@ -126,7 +126,7 @@ GMCH_is_origin (struct CadetChannel *ch, int fwd);
126 * @return #GNUNET_YES in case it is. 126 * @return #GNUNET_YES in case it is.
127 */ 127 */
128int 128int
129GMCH_is_terminal (struct CadetChannel *ch, int fwd); 129GCCH_is_terminal (struct CadetChannel *ch, int fwd);
130 130
131/** 131/**
132 * Send an end-to-end ACK message for the most recent in-sequence payload. 132 * Send an end-to-end ACK message for the most recent in-sequence payload.
@@ -137,7 +137,7 @@ GMCH_is_terminal (struct CadetChannel *ch, int fwd);
137 * @param fwd Is for FWD traffic? (ACK dest->owner) 137 * @param fwd Is for FWD traffic? (ACK dest->owner)
138 */ 138 */
139void 139void
140GMCH_send_data_ack (struct CadetChannel *ch, int fwd); 140GCCH_send_data_ack (struct CadetChannel *ch, int fwd);
141 141
142/** 142/**
143 * Notify the destination client that a new incoming channel was created. 143 * Notify the destination client that a new incoming channel was created.
@@ -145,7 +145,7 @@ GMCH_send_data_ack (struct CadetChannel *ch, int fwd);
145 * @param ch Channel that was created. 145 * @param ch Channel that was created.
146 */ 146 */
147void 147void
148GMCH_send_create (struct CadetChannel *ch); 148GCCH_send_create (struct CadetChannel *ch);
149 149
150/** 150/**
151 * Allow a client to send us more data, in case it was choked. 151 * Allow a client to send us more data, in case it was choked.
@@ -154,7 +154,7 @@ GMCH_send_create (struct CadetChannel *ch);
154 * @param fwd Is this about FWD traffic? (Root client). 154 * @param fwd Is this about FWD traffic? (Root client).
155 */ 155 */
156void 156void
157GMCH_allow_client (struct CadetChannel *ch, int fwd); 157GCCH_allow_client (struct CadetChannel *ch, int fwd);
158 158
159/** 159/**
160 * Log channel info. 160 * Log channel info.
@@ -162,7 +162,7 @@ GMCH_allow_client (struct CadetChannel *ch, int fwd);
162 * @param ch Channel. 162 * @param ch Channel.
163 */ 163 */
164void 164void
165GMCH_debug (struct CadetChannel *ch); 165GCCH_debug (struct CadetChannel *ch);
166 166
167/** 167/**
168 * Handle an ACK given by a client. 168 * Handle an ACK given by a client.
@@ -173,7 +173,7 @@ GMCH_debug (struct CadetChannel *ch);
173 * @param fwd Is this a "FWD ACK"? (FWD ACKs are sent by root and go BCK) 173 * @param fwd Is this a "FWD ACK"? (FWD ACKs are sent by root and go BCK)
174 */ 174 */
175void 175void
176GMCH_handle_local_ack (struct CadetChannel *ch, int fwd); 176GCCH_handle_local_ack (struct CadetChannel *ch, int fwd);
177 177
178/** 178/**
179 * Handle data given by a client. 179 * Handle data given by a client.
@@ -190,7 +190,7 @@ GMCH_handle_local_ack (struct CadetChannel *ch, int fwd);
190 * @return GNUNET_OK if everything goes well, GNUNET_SYSERR in case of en error. 190 * @return GNUNET_OK if everything goes well, GNUNET_SYSERR in case of en error.
191 */ 191 */
192int 192int
193GMCH_handle_local_data (struct CadetChannel *ch, 193GCCH_handle_local_data (struct CadetChannel *ch,
194 struct CadetClient *c, 194 struct CadetClient *c,
195 struct GNUNET_MessageHeader *message, 195 struct GNUNET_MessageHeader *message,
196 int fwd); 196 int fwd);
@@ -205,7 +205,7 @@ GMCH_handle_local_data (struct CadetChannel *ch,
205 * @param is_root Is the request coming from root? 205 * @param is_root Is the request coming from root?
206 */ 206 */
207void 207void
208GMCH_handle_local_destroy (struct CadetChannel *ch, 208GCCH_handle_local_destroy (struct CadetChannel *ch,
209 struct CadetClient *c, 209 struct CadetClient *c,
210 int is_root); 210 int is_root);
211 211
@@ -220,7 +220,7 @@ GMCH_handle_local_destroy (struct CadetChannel *ch,
220 * @return GNUNET_OK if everything went fine, GNUNET_SYSERR otherwise. 220 * @return GNUNET_OK if everything went fine, GNUNET_SYSERR otherwise.
221 */ 221 */
222int 222int
223GMCH_handle_local_create (struct CadetClient *c, 223GCCH_handle_local_create (struct CadetClient *c,
224 struct GNUNET_CADET_ChannelMessage *msg); 224 struct GNUNET_CADET_ChannelMessage *msg);
225 225
226/** 226/**
@@ -234,7 +234,7 @@ GMCH_handle_local_create (struct CadetClient *c,
234 * #GNUNET_SYSERR if message on a one-ended channel (remote) 234 * #GNUNET_SYSERR if message on a one-ended channel (remote)
235 */ 235 */
236void 236void
237GMCH_handle_data (struct CadetChannel *ch, 237GCCH_handle_data (struct CadetChannel *ch,
238 const struct GNUNET_CADET_Data *msg, 238 const struct GNUNET_CADET_Data *msg,
239 int fwd); 239 int fwd);
240 240
@@ -249,7 +249,7 @@ GMCH_handle_data (struct CadetChannel *ch,
249 * #GNUNET_SYSERR if message on a one-ended channel (remote) 249 * #GNUNET_SYSERR if message on a one-ended channel (remote)
250 */ 250 */
251void 251void
252GMCH_handle_data_ack (struct CadetChannel *ch, 252GCCH_handle_data_ack (struct CadetChannel *ch,
253 const struct GNUNET_CADET_DataACK *msg, 253 const struct GNUNET_CADET_DataACK *msg,
254 int fwd); 254 int fwd);
255 255
@@ -262,7 +262,7 @@ GMCH_handle_data_ack (struct CadetChannel *ch,
262 * @param msg Channel crate message. 262 * @param msg Channel crate message.
263 */ 263 */
264struct CadetChannel * 264struct CadetChannel *
265GMCH_handle_create (struct CadetTunnel3 *t, 265GCCH_handle_create (struct CadetTunnel3 *t,
266 const struct GNUNET_CADET_ChannelCreate *msg); 266 const struct GNUNET_CADET_ChannelCreate *msg);
267 267
268/** 268/**
@@ -273,7 +273,7 @@ GMCH_handle_create (struct CadetTunnel3 *t,
273 * @param ch Channel. 273 * @param ch Channel.
274 */ 274 */
275void 275void
276GMCH_handle_nack (struct CadetChannel *ch); 276GCCH_handle_nack (struct CadetChannel *ch);
277 277
278/** 278/**
279 * Handler for channel ack messages. 279 * Handler for channel ack messages.
@@ -286,7 +286,7 @@ GMCH_handle_nack (struct CadetChannel *ch);
286 * #GNUNET_SYSERR if message on a one-ended channel (remote) 286 * #GNUNET_SYSERR if message on a one-ended channel (remote)
287 */ 287 */
288void 288void
289GMCH_handle_ack (struct CadetChannel *ch, 289GCCH_handle_ack (struct CadetChannel *ch,
290 const struct GNUNET_CADET_ChannelManage *msg, 290 const struct GNUNET_CADET_ChannelManage *msg,
291 int fwd); 291 int fwd);
292 292
@@ -301,7 +301,7 @@ GMCH_handle_ack (struct CadetChannel *ch,
301 * #GNUNET_SYSERR if message on a one-ended channel (remote) 301 * #GNUNET_SYSERR if message on a one-ended channel (remote)
302 */ 302 */
303void 303void
304GMCH_handle_destroy (struct CadetChannel *ch, 304GCCH_handle_destroy (struct CadetChannel *ch,
305 const struct GNUNET_CADET_ChannelManage *msg, 305 const struct GNUNET_CADET_ChannelManage *msg,
306 int fwd); 306 int fwd);
307 307
@@ -322,7 +322,7 @@ GMCH_handle_destroy (struct CadetChannel *ch,
322 * @param existing_copy This is a retransmission, don't save a copy. 322 * @param existing_copy This is a retransmission, don't save a copy.
323 */ 323 */
324void 324void
325GMCH_send_prebuilt_message (const struct GNUNET_MessageHeader *message, 325GCCH_send_prebuilt_message (const struct GNUNET_MessageHeader *message,
326 struct CadetChannel *ch, int fwd, 326 struct CadetChannel *ch, int fwd,
327 void *existing_copy); 327 void *existing_copy);
328 328
@@ -334,7 +334,7 @@ GMCH_send_prebuilt_message (const struct GNUNET_MessageHeader *message,
334 * @return Static string with the channel IDs. 334 * @return Static string with the channel IDs.
335 */ 335 */
336const char * 336const char *
337GMCH_2s (const struct CadetChannel *ch); 337GCCH_2s (const struct CadetChannel *ch);
338 338
339 339
340#if 0 /* keep Emacsens' auto-indent happy */ 340#if 0 /* keep Emacsens' auto-indent happy */