fix
authorChristian Grothoff <christian@grothoff.org>
Wed, 26 Oct 2011 11:45:10 +0000 (11:45 +0000)
committerChristian Grothoff <christian@grothoff.org>
Wed, 26 Oct 2011 11:45:10 +0000 (11:45 +0000)
src/transport/gnunet-transport.c

index 10994fbf8c7d3ebabe99a6b7d15589892287124c..bf2a13bd6c191cd7c349f034429bceb25605b32b 100644 (file)
@@ -256,6 +256,16 @@ run (void *cls, char *const *args, const char *cfgfile,
                                        : GNUNET_TIME_UNIT_SECONDS,
                                        &do_disconnect,
                                        NULL);    
+  } else if (benchmark_receive)
+  {
+    handle = GNUNET_TRANSPORT_connect (cfg, NULL, NULL,
+                                      &notify_receive, 
+                                      &notify_connect,
+                                      &notify_disconnect);
+    GNUNET_TRANSPORT_try_connect (handle, &pid);
+    end = GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_FOREVER_REL
+                                       &do_disconnect,
+                                       NULL); 
   }
 }