1,
GNUNET_NO);
/* prepare to send the next one */
- if (NULL != pl->hello_delay_task)
- GNUNET_SCHEDULER_cancel (pl->hello_delay_task);
pl->next_hello_allowed
= GNUNET_TIME_relative_to_absolute (HELLO_ADVERTISEMENT_MIN_FREQUENCY);
+ if (NULL != pl->hello_delay_task)
+ GNUNET_SCHEDULER_cancel (pl->hello_delay_task);
pl->hello_delay_task
= GNUNET_SCHEDULER_add_now (&schedule_next_hello,
pl);
/**
- * Function called after #GNUNET_CORE_connecT has succeeded
+ * Function called after #GNUNET_CORE_connect has succeeded
* (or failed for good).
*
* @param cls closure
const struct GNUNET_HELLO_Message *message)
{
struct GNUNET_PeerIdentity pid;
-
+
if (GNUNET_OK !=
GNUNET_HELLO_get_id (message,
&pid))
}
if (NULL != handle)
{
- GNUNET_CORE_disconnecT (handle);
+ GNUNET_CORE_disconnect (handle);
handle = NULL;
}
whitelist_peers ();
const char *cfgfile,
const struct GNUNET_CONFIGURATION_Handle *c)
{
- GNUNET_MQ_hd_var_size (hello,
- GNUNET_MESSAGE_TYPE_HELLO,
- struct GNUNET_HELLO_Message);
struct GNUNET_MQ_MessageHandler handlers[] = {
- make_hello_handler (NULL),
+ GNUNET_MQ_hd_var_size (hello,
+ GNUNET_MESSAGE_TYPE_HELLO,
+ struct GNUNET_HELLO_Message,
+ NULL),
GNUNET_MQ_handler_end ()
};
unsigned long long opt;
&blacklist_check,
NULL);
ats = GNUNET_ATS_connectivity_init (cfg);
- handle = GNUNET_CORE_connecT (cfg,
+ handle = GNUNET_CORE_connect (cfg,
NULL,
&core_init,
&connect_notify,