* Callback to free content
*
* @param cls content to free
+ * @param tc task context
*/
static void
mhd_content_free (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
* @param pos in buffer
* @param buf buffer
* @param max space in buffer
+ * @return number of bytes written
*/
static ssize_t
mhd_content_cb (void *cls,
/**
* schedule mhd
+ *
+ * @param hd the daemon to run
*/
static void
run_httpd (struct MhdHttpList *hd)
return MHD_add_connection (daemon, fd, addr, len);
}
-
+/**
+ * Calculate size of file
+ *
+ * @param filename name of file
+ * @return filesize or 0 on error
+ */
static long
get_file_size (const char* filename)
{
* Read file in filename
*
* @param filename file to read
+ * @param size pointer where filesize is stored
* @return data
*/
static char*
return buffer;
}
-/** SSL stuff **/
-
/**
* Load PEM key from file
*
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
"Shutting down...\n");
- MHD_fini ();
gnutls_global_deinit ();
if (GNUNET_SCHEDULER_NO_TASK != curl_download_task)