aboutsummaryrefslogtreecommitdiff
path: root/src/fs
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-11-29 14:03:43 +0000
committerChristian Grothoff <christian@grothoff.org>2013-11-29 14:03:43 +0000
commitfc7a2ed15ec9469c727c3398b7431976396d7a41 (patch)
treef305271e5552f33e3ab4b91042a143243d43cb5e /src/fs
parent92932ebe776018c3b79924c47d961e45d4222eb8 (diff)
downloadgnunet-fc7a2ed15ec9469c727c3398b7431976396d7a41.tar.gz
gnunet-fc7a2ed15ec9469c727c3398b7431976396d7a41.zip
-doxygen and logging
Diffstat (limited to 'src/fs')
-rw-r--r--src/fs/gnunet-service-fs_mesh_client.c25
1 files changed, 15 insertions, 10 deletions
diff --git a/src/fs/gnunet-service-fs_mesh_client.c b/src/fs/gnunet-service-fs_mesh_client.c
index 3da3a937f..370183182 100644
--- a/src/fs/gnunet-service-fs_mesh_client.c
+++ b/src/fs/gnunet-service-fs_mesh_client.c
@@ -92,8 +92,8 @@ struct GSF_MeshRequest
92 enum GNUNET_BLOCK_Type type; 92 enum GNUNET_BLOCK_Type type;
93 93
94 /** 94 /**
95 * Did we transmit this request already? YES if we are 95 * Did we transmit this request already? #GNUNET_YES if we are
96 * in the 'waiting_map', NO if we are in the 'pending' DLL. 96 * in the 'waiting_map', #GNUNET_NO if we are in the 'pending' DLL.
97 */ 97 */
98 int was_transmitted; 98 int was_transmitted;
99}; 99};
@@ -180,10 +180,10 @@ transmit_pending (struct MeshHandle *mh);
180 * Iterator called on each entry in a waiting map to 180 * Iterator called on each entry in a waiting map to
181 * move it back to the pending list. 181 * move it back to the pending list.
182 * 182 *
183 * @param cls the 'struct MeshHandle' 183 * @param cls the `struct MeshHandle`
184 * @param key the key of the entry in the map (the query) 184 * @param key the key of the entry in the map (the query)
185 * @param value the 'struct GSF_MeshRequest' to move to pending 185 * @param value the `struct GSF_MeshRequest` to move to pending
186 * @return GNUNET_YES (continue to iterate) 186 * @return #GNUNET_YES (continue to iterate)
187 */ 187 */
188static int 188static int
189move_to_pending (void *cls, 189move_to_pending (void *cls,
@@ -237,7 +237,7 @@ reset_mesh (struct MeshHandle *mh)
237/** 237/**
238 * Task called when it is time to destroy an inactive mesh channel. 238 * Task called when it is time to destroy an inactive mesh channel.
239 * 239 *
240 * @param cls the 'struct MeshHandle' to tear down 240 * @param cls the `struct MeshHandle` to tear down
241 * @param tc scheduler context, unused 241 * @param tc scheduler context, unused
242 */ 242 */
243static void 243static void
@@ -260,7 +260,7 @@ mesh_timeout (void *cls,
260/** 260/**
261 * Task called when it is time to reset an mesh. 261 * Task called when it is time to reset an mesh.
262 * 262 *
263 * @param cls the 'struct MeshHandle' to tear down 263 * @param cls the `struct MeshHandle` to tear down
264 * @param tc scheduler context, unused 264 * @param tc scheduler context, unused
265 */ 265 */
266static void 266static void
@@ -404,9 +404,9 @@ struct HandleReplyClosure
404 * Iterator called on each entry in a waiting map to 404 * Iterator called on each entry in a waiting map to
405 * process a result. 405 * process a result.
406 * 406 *
407 * @param cls the 'struct HandleReplyClosure' 407 * @param cls the `struct HandleReplyClosure`
408 * @param key the key of the entry in the map (the query) 408 * @param key the key of the entry in the map (the query)
409 * @param value the 'struct GSF_MeshRequest' to handle result for 409 * @param value the `struct GSF_MeshRequest` to handle result for
410 * @return #GNUNET_YES (continue to iterate) 410 * @return #GNUNET_YES (continue to iterate)
411 */ 411 */
412static int 412static int
@@ -433,7 +433,7 @@ handle_reply (void *cls,
433 * Functions with this signature are called whenever a complete reply 433 * Functions with this signature are called whenever a complete reply
434 * is received. 434 * is received.
435 * 435 *
436 * @param cls closure with the 'struct MeshHandle' 436 * @param cls closure with the `struct MeshHandle`
437 * @param channel channel handle 437 * @param channel channel handle
438 * @param channel_ctx channel context 438 * @param channel_ctx channel context
439 * @param message the actual message 439 * @param message the actual message
@@ -468,6 +468,11 @@ reply_cb (void *cls,
468 &srm[1], msize, &query)) 468 &srm[1], msize, &query))
469 { 469 {
470 GNUNET_break_op (0); 470 GNUNET_break_op (0);
471 GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
472 "Received bogus reply of type %u with %u bytes via mesh from peer %s\n",
473 type,
474 msize,
475 GNUNET_i2s (&mh->target));
471 reset_mesh_async (mh); 476 reset_mesh_async (mh);
472 return GNUNET_SYSERR; 477 return GNUNET_SYSERR;
473 } 478 }