+ return GNUNET_SYSERR;
+ }
+ return GNUNET_OK;
+}
+
+
+/**
+ * Handle GET-message.
+ *
+ * @param cls identification of the client
+ * @param msg the actual message
+ */
+static void
+handle_get (void *cls,
+ const struct GNUNET_RESOLVER_GetMessage *msg)
+{
+ struct GNUNET_SERVICE_Client *client = cls;
+ const void *ip;
+ int direction;
+ int af;
+
+ direction = ntohl (msg->direction);
+ af = ntohl (msg->af);
+ if (GNUNET_NO == direction)
+ {
+ /* IP from hostname */
+ const char *hostname;
+
+ hostname = (const char *) &msg[1];
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+ "Resolver asked to look up `%s'.\n",
+ hostname);
+ get_ip_from_hostname (client,
+ hostname,
+ af);