/**
* Callback called by notify_transmit_ready; sends dns-queries or rehijack-messages
* to the service-dns
+ * {{{
*/
static size_t
send_query(void* cls, size_t size, void* buf) {
return len;
}
+/* }}} */
/**
* Function scheduled as very last function, cleans up after us
+ *{{{
*/
static void
cleanup(void* cls, const struct GNUNET_SCHEDULER_TaskContext* tskctx) {
dns_connection = NULL;
}
}
+/*}}}*/
/**
* Start the helper-process
+ * {{{
*/
static void
start_helper_and_schedule(void *cls,
GNUNET_SCHEDULER_add_read_file (GNUNET_TIME_UNIT_FOREVER_REL, fh_from_helper, &helper_read, NULL);
}
+/*}}}*/
/**
* Restart the helper-process
+ * {{{
*/
static void
restart_helper(void* cls, const struct GNUNET_SCHEDULER_TaskContext* tskctx) {
/* Restart the helper */
GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_SECONDS, start_helper_and_schedule, NULL);
}
+/*}}}*/
/**
* Read from the helper-process
+ * {{{
*/
static void
helper_read(void* cls, const struct GNUNET_SCHEDULER_TaskContext* tsdkctx) {
GNUNET_SCHEDULER_add_read_file (GNUNET_TIME_UNIT_FOREVER_REL, fh_from_helper, &helper_read, NULL);
}
+/*}}}*/
/**
* Calculate the checksum of an IPv4-Header