aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMaximilian Szengel <gnunet@maxsz.de>2012-10-18 18:01:49 +0000
committerMaximilian Szengel <gnunet@maxsz.de>2012-10-18 18:01:49 +0000
commit2502a670c1ce1252ef388d28365120a2ee6ca2f2 (patch)
tree3e5c85d1ca2a32df16ed29bd48c3c57b6bf33b66 /src
parentbeba336144a95917321fe706d871cf27fc00db87 (diff)
downloadgnunet-2502a670c1ce1252ef388d28365120a2ee6ca2f2.tar.gz
gnunet-2502a670c1ce1252ef388d28365120a2ee6ca2f2.zip
doxygen
Diffstat (limited to 'src')
-rw-r--r--src/mesh/test_mesh_regex.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/mesh/test_mesh_regex.c b/src/mesh/test_mesh_regex.c
index f88822bc8..878ca2f68 100644
--- a/src/mesh/test_mesh_regex.c
+++ b/src/mesh/test_mesh_regex.c
@@ -41,6 +41,10 @@
41 */ 41 */
42#define SHORT_TIME GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 30) 42#define SHORT_TIME GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 30)
43 43
44/**
45 * Initial regex padding.
46 */
47#define REGEX_INITIAL_PADDING "PADPADPADPADPADP"
44 48
45/** 49/**
46 * Which strings have been found & connected. 50 * Which strings have been found & connected.
@@ -188,7 +192,7 @@ shutdown_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
188/** 192/**
189 * Ends test: Disconnects peers and calls shutdown. 193 * Ends test: Disconnects peers and calls shutdown.
190 * @param cls Closure (not used). 194 * @param cls Closure (not used).
191 * @param tc TaskContext. 195 * @param tc TaskContext.
192 */ 196 */
193static void 197static void
194disconnect_peers (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) 198disconnect_peers (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
@@ -287,7 +291,7 @@ ch (void *cls, const struct GNUNET_PeerIdentity *peer,
287 "Peer connected: %s\n", 291 "Peer connected: %s\n",
288 GNUNET_i2s (peer)); 292 GNUNET_i2s (peer));
289 regex_peers++; 293 regex_peers++;
290 294
291 GNUNET_MESH_notify_transmit_ready(t[i], GNUNET_NO, 295 GNUNET_MESH_notify_transmit_ready(t[i], GNUNET_NO,
292 GNUNET_TIME_UNIT_FOREVER_REL, 296 GNUNET_TIME_UNIT_FOREVER_REL,
293 peer, 297 peer,
@@ -370,7 +374,7 @@ data_callback (void *cls, struct GNUNET_MESH_Tunnel *tunnel, void **tunnel_ctx,
370 GNUNET_SCHEDULER_cancel (disconnect_task); 374 GNUNET_SCHEDULER_cancel (disconnect_task);
371 disconnect_task = 375 disconnect_task =
372 GNUNET_SCHEDULER_add_now (&disconnect_peers, NULL); 376 GNUNET_SCHEDULER_add_now (&disconnect_peers, NULL);
373 } 377 }
374 return GNUNET_OK; 378 return GNUNET_OK;
375} 379}
376 380
@@ -457,7 +461,7 @@ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
457 GNUNET_MESH_peer_request_connect_by_string (t[i], strings[i]); 461 GNUNET_MESH_peer_request_connect_by_string (t[i], strings[i]);
458 } 462 }
459 /* connect handler = success, timeout = error */ 463 /* connect handler = success, timeout = error */
460 464
461} 465}
462 466
463 467