aboutsummaryrefslogtreecommitdiff
path: root/src/testbed/gnunet-service-testbed.c
diff options
context:
space:
mode:
authorSree Harsha Totakura <totakura@in.tum.de>2013-08-30 14:55:13 +0000
committerSree Harsha Totakura <totakura@in.tum.de>2013-08-30 14:55:13 +0000
commit5e1efe185cf484018f53dd33d64e546ac042fdee (patch)
treee1369e8e1a239426d4ba2d81bb31571bbd4f82eb /src/testbed/gnunet-service-testbed.c
parent7d8d536bbaa0f72587552af517f643e3c05e7a6f (diff)
downloadgnunet-5e1efe185cf484018f53dd33d64e546ac042fdee.tar.gz
gnunet-5e1efe185cf484018f53dd33d64e546ac042fdee.zip
- towards testbed barriers
Diffstat (limited to 'src/testbed/gnunet-service-testbed.c')
-rw-r--r--src/testbed/gnunet-service-testbed.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/testbed/gnunet-service-testbed.c b/src/testbed/gnunet-service-testbed.c
index de038eeae..3b01bc504 100644
--- a/src/testbed/gnunet-service-testbed.c
+++ b/src/testbed/gnunet-service-testbed.c
@@ -34,7 +34,7 @@
34/** 34/**
35 * Our configuration 35 * Our configuration
36 */ 36 */
37struct GNUNET_CONFIGURATION_Handle *our_config; 37struct GNUNET_CONFIGURATION_Handle *GST_config;
38 38
39/** 39/**
40 * The master context; generated with the first INIT message 40 * The master context; generated with the first INIT message
@@ -516,11 +516,11 @@ handle_init (void *cls, struct GNUNET_SERVER_Client *client,
516 } 516 }
517 ss_str = NULL; 517 ss_str = NULL;
518 ss = NULL; 518 ss = NULL;
519 if (GNUNET_OK == GNUNET_CONFIGURATION_get_value_string (our_config, "TESTBED", 519 if (GNUNET_OK == GNUNET_CONFIGURATION_get_value_string (GST_config, "TESTBED",
520 "SHARED_SERVICES", 520 "SHARED_SERVICES",
521 &ss_str)) 521 &ss_str))
522 { 522 {
523 ss = parse_shared_services (ss_str, our_config); 523 ss = parse_shared_services (ss_str, GST_config);
524 GNUNET_free (ss_str); 524 GNUNET_free (ss_str);
525 ss_str = NULL; 525 ss_str = NULL;
526 } 526 }
@@ -546,7 +546,7 @@ handle_init (void *cls, struct GNUNET_SERVER_Client *client,
546 host = 546 host =
547 GNUNET_TESTBED_host_create_with_id (GST_context->host_id, 547 GNUNET_TESTBED_host_create_with_id (GST_context->host_id,
548 GST_context->master_ip, NULL, 548 GST_context->master_ip, NULL,
549 our_config, 0); 549 GST_config, 0);
550 host_list_add (host); 550 host_list_add (host);
551 LOG_DEBUG ("Created master context with host ID: %u\n", GST_context->host_id); 551 LOG_DEBUG ("Created master context with host ID: %u\n", GST_context->host_id);
552 GNUNET_SERVER_receive_done (client, GNUNET_OK); 552 GNUNET_SERVER_receive_done (client, GNUNET_OK);
@@ -824,7 +824,7 @@ shutdown_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
824 GNUNET_free (mq_entry); 824 GNUNET_free (mq_entry);
825 } 825 }
826 GNUNET_free_non_null (hostname); 826 GNUNET_free_non_null (hostname);
827 GNUNET_CONFIGURATION_destroy (our_config); 827 GNUNET_CONFIGURATION_destroy (GST_config);
828 /* Free hello cache */ 828 /* Free hello cache */
829 GST_cache_clear (); 829 GST_cache_clear ();
830 GNUNET_TESTBED_operation_queue_destroy_ (GST_opq_openfds); 830 GNUNET_TESTBED_operation_queue_destroy_ (GST_opq_openfds);
@@ -929,7 +929,7 @@ testbed_run (void *cls, struct GNUNET_SERVER_Handle *server,
929 GNUNET_assert (GNUNET_OK == 929 GNUNET_assert (GNUNET_OK ==
930 GNUNET_CONFIGURATION_get_value_string (cfg, "testbed", 930 GNUNET_CONFIGURATION_get_value_string (cfg, "testbed",
931 "HOSTNAME", &hostname)); 931 "HOSTNAME", &hostname));
932 our_config = GNUNET_CONFIGURATION_dup (cfg); 932 GST_config = GNUNET_CONFIGURATION_dup (cfg);
933 GNUNET_SERVER_add_handlers (server, message_handlers); 933 GNUNET_SERVER_add_handlers (server, message_handlers);
934 GNUNET_SERVER_disconnect_notify (server, &client_disconnect_cb, NULL); 934 GNUNET_SERVER_disconnect_notify (server, &client_disconnect_cb, NULL);
935 shutdown_task_id = 935 shutdown_task_id =
@@ -937,7 +937,7 @@ testbed_run (void *cls, struct GNUNET_SERVER_Handle *server,
937 GNUNET_SCHEDULER_PRIORITY_IDLE, 937 GNUNET_SCHEDULER_PRIORITY_IDLE,
938 &shutdown_task, NULL); 938 &shutdown_task, NULL);
939 LOG_DEBUG ("Testbed startup complete\n"); 939 LOG_DEBUG ("Testbed startup complete\n");
940 GST_stats_init (our_config); 940 GST_stats_init (GST_config);
941} 941}
942 942
943 943