static const struct GNUNET_GETOPT_CommandLineOption options[] = {
GNUNET_GETOPT_OPTION_END
};
+ GNUNET_PROGRAM_run (argc,
+ argv,
+ "gnunet-resolver [hostname]",
+ gettext_noop
+ ("Test GNUnet DNS resolver code."),
+ options, &run, NULL);
+ fprintf (stderr, "again...\n");
+
return (GNUNET_OK ==
GNUNET_PROGRAM_run (argc,
argv,
/*
This file is part of GNUnet.
- (C) 2009 Christian Grothoff (and other contributing authors)
+ (C) 2009, 2011 Christian Grothoff (and other contributing authors)
GNUnet is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published
GNUNET_RESOLVER_connect (const struct GNUNET_CONFIGURATION_Handle *c)
{
check_config (c);
+ backoff = GNUNET_TIME_UNIT_MILLISECONDS;
cfg = c;
}
GNUNET_SCHEDULER_cancel (s_task);
s_task = GNUNET_SCHEDULER_NO_TASK;
}
+ cfg = NULL;
}
r_task = GNUNET_SCHEDULER_add_delayed (backoff,
&reconnect_task,
NULL);
- backoff = GNUNET_TIME_relative_max (GNUNET_TIME_UNIT_SECONDS,
- GNUNET_TIME_relative_multiply (backoff, 2));
+ backoff = GNUNET_TIME_relative_multiply (backoff, 2);
}