62 "Received CREATE message from client\n");
Auction creation request sent from the client to the service.
static struct GNUNET_SERVICE_Handle * service
Handle to our service instance.
struct GNUNET_MessageHeader * msg
#define GNUNET_MESSAGE_TYPE_AUCTION_CLIENT_CREATE
Client wants to create a new auction.
static const struct GNUNET_CONFIGURATION_Handle * cfg
Configuration we are using.
Common type definitions for the auction service and API.
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, or when GNUNET_SCHEDULER_shutdown() is being invoked.
#define GNUNET_assert(cond)
Use this for fatal errors that cannot be handled.
Handle to a client that is connected to a service.
static void handle_create(void *cls, const struct GNUNET_AUCTION_ClientCreateMessage *msg)
Handler for CREATE messages.
#define GNUNET_MQ_hd_var_size(name, code, str, ctx)
static void run(void *cls, const struct GNUNET_CONFIGURATION_Handle *cfg, struct GNUNET_SERVICE_Handle *service)
Process auction requests.
#define GNUNET_SERVICE_MAIN(service_name, service_options, init_cb, connect_cb, disconnect_cb, cls,...)
Creates the "main" function for a GNUnet service.
static int check_create(void *cls, const struct GNUNET_AUCTION_ClientCreateMessage *msg)
Check AUCTION CREATE messages from the client.
Handle to a message queue.
static void cleanup_task(void *cls)
Task run during shutdown.
struct GNUNET_MQ_Handle * mq
#define GNUNET_log(kind,...)
static void client_disconnect_cb(void *cls, struct GNUNET_SERVICE_Client *c, void *internal_cls)
Callback called when a client disconnected from the service.
void GNUNET_SERVICE_client_continue(struct GNUNET_SERVICE_Client *c)
Continue receiving further messages from the given client.
#define GNUNET_MQ_handler_end()
End-marker for the handlers array.
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.