#define DEFAULT_NUM_PEERS 2
/* test records to resolve */
-#define TEST_DOMAIN "www.homepage.gnunet"
-#define TEST_DOMAIN_ALT "homepage.gnunet"
-#define TEST_DOMAIN_ALT2 "uk.homepage.gnunet"
+#define TEST_DOMAIN "www.homepage.gads"
+#define TEST_DOMAIN_ALT "homepage.gads"
+#define TEST_DOMAIN_ALT2 "uk.homepage.gads"
#define TEST_IP_ALT2 "81.187.252.184"
#define TEST_IP "131.159.74.67"
#define TEST_IP_NS "216.69.185.1" //ns01.domaincontrol.com
}
static void
-end_now ()
+end_now (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
{
GNUNET_log(GNUNET_ERROR_TYPE_DEBUG, "Test successful, shutting down...\n");
if (GNUNET_SCHEDULER_NO_TASK != die_task)
}
}
}
- end_now ();
+ GNUNET_SCHEDULER_add_now (&end_now, NULL);
}
static void
GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
"System resolver not working. Test inconclusive!\n");
GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Shutting down peer1!\n");
- end_now ();
+ GNUNET_SCHEDULER_add_now (&end_now, NULL);
return;
}
GNUNET_log(GNUNET_ERROR_TYPE_DEBUG, "Starting lookup \n");