62 "Received CREATE message from client\n");
struct GNUNET_MQ_Handle * mq
struct GNUNET_MessageHeader * msg
Common type definitions for the auction service and API.
static struct GNUNET_CONFIGURATION_Handle * cfg
Our configuration.
static int create
Create DID Document Flag.
static struct GNUNET_SERVICE_Handle * service
Handle to our service instance.
static void cleanup_task(void *cls)
Task run during shutdown.
static void * client_connect_cb(void *cls, struct GNUNET_SERVICE_Client *c, struct GNUNET_MQ_Handle *mq)
Callback called when a client connects to the service.
static void client_disconnect_cb(void *cls, struct GNUNET_SERVICE_Client *c, void *internal_cls)
Callback called when a client disconnected from the service.
static int check_create(void *cls, const struct GNUNET_AUCTION_ClientCreateMessage *msg)
Check AUCTION CREATE messages from the client.
static void run(void *cls, const struct GNUNET_CONFIGURATION_Handle *cfg, struct GNUNET_SERVICE_Handle *service)
Process auction requests.
static void handle_create(void *cls, const struct GNUNET_AUCTION_ClientCreateMessage *msg)
Handler for CREATE messages.
#define GNUNET_log(kind,...)
#define GNUNET_assert(cond)
Use this for fatal errors that cannot be handled.
@ GNUNET_ERROR_TYPE_DEBUG
#define GNUNET_MQ_handler_end()
End-marker for the handlers array.
#define GNUNET_MQ_hd_var_size(name, code, str, ctx)
const struct GNUNET_OS_ProjectData * GNUNET_OS_project_data_gnunet(void)
Return default project data used by 'libgnunetutil' for GNUnet.
#define GNUNET_MESSAGE_TYPE_AUCTION_CLIENT_CREATE
Client wants to create a new auction.
struct GNUNET_SCHEDULER_Task * GNUNET_SCHEDULER_add_shutdown(GNUNET_SCHEDULER_TaskCallback task, void *task_cls)
Schedule a new task to be run on shutdown, that is when a CTRL-C signal is received,...
#define GNUNET_SERVICE_MAIN(pd, service_name, service_options, init_cb, connect_cb, disconnect_cb, cls,...)
Creates the "main" function for a GNUnet service.
void GNUNET_SERVICE_client_continue(struct GNUNET_SERVICE_Client *c)
Continue receiving further messages from the given client.
@ GNUNET_SERVICE_OPTION_NONE
Use defaults.
Auction creation request sent from the client to the service.
Handle to a message queue.
Handle to a client that is connected to a service.