#include "gnunet_getopt_lib.h"
#include "gnunet_service_lib.h"
#include "gnunet_namestore_service.h"
+#include "namestore.h"
/**
/* FIXME: do clean up here */
}
+static void handle_start ()
+{
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Received `%s' message\n", "START");
+
+}
+
/**
* Process template requests.
const struct GNUNET_CONFIGURATION_Handle *cfg)
{
static const struct GNUNET_SERVER_MessageHandler handlers[] = {
- /* FIXME: add handlers here! */
+ {&handle_start, NULL,
+ GNUNET_MESSAGE_TYPE_NAMESTORE_START, sizeof (struct StartMessage)},
{NULL, NULL, 0, 0}
};
static void
force_reconnect (struct GNUNET_NAMESTORE_Handle *nsh);
-/**
- * Transmit messages from the message queue to the service
- * (if there are any, and if we are not already trying).
- *
- * @param nsh handle to use
- */
-static void
-do_transmit (struct GNUNET_NAMESTORE_Handle *nsh);
-
/**
* Type of a function to call when we receive a message
force_reconnect (nsh);
}
+
+/**
+ * Transmit messages from the message queue to the service
+ * (if there are any, and if we are not already trying).
+ *
+ * @param nsh handle to use
+ */
+static void
+do_transmit (struct GNUNET_NAMESTORE_Handle *nsh);
+
+
/**
* We can now transmit a message to NAMESTORE. Do it.
*
static int res;
+
static void
run (void *cls, char *const *args, const char *cfgfile,
const struct GNUNET_CONFIGURATION_Handle *cfg)
{
int ret;
-
ret = check ();
return ret;
+[arm]
+PORT = 12000
+DEFAULTSERVICES = namestore
+UNIXPATH = /tmp/gnunet-p1-service-arm.sock
+
[namestore]
AUTOSTART = YES
UNIXPATH = /tmp/gnunet-service-namestore.sock
# HOST = localhost
# PORT = 3306
-
-