service for executing auctions More...
Go to the source code of this file.
Functions | |
| static int | check_create (void *cls, const struct GNUNET_AUCTION_ClientCreateMessage *msg) |
| Check AUCTION CREATE messages from the client. | |
| static void | handle_create (void *cls, const struct GNUNET_AUCTION_ClientCreateMessage *msg) |
| Handler for CREATE messages. | |
| 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 void | run (void *cls, const struct GNUNET_CONFIGURATION_Handle *cfg, struct GNUNET_SERVICE_Handle *service) |
| Process auction requests. | |
service for executing auctions
Definition in file gnunet-service-auction.c.
|
static |
Check AUCTION CREATE messages from the client.
| cls | the client we received this message from |
| msg | the actual message received |
Definition at line 39 of file gnunet-service-auction.c.
References GNUNET_OK.
|
static |
Handler for CREATE messages.
| cls | the client we received this message from |
| msg | the actual message received |
TODO: create auction and return auction object
Definition at line 53 of file gnunet-service-auction.c.
References GNUNET_ERROR_TYPE_DEBUG, GNUNET_log, and GNUNET_SERVICE_client_continue().
|
static |
Task run during shutdown.
| cls | unused |
Definition at line 82 of file gnunet-service-auction.c.
|
static |
Callback called when a client connects to the service.
| cls | closure for the service |
| c | the new client that connected to the service |
| mq | the message queue used to send messages to the client |
Definition at line 97 of file gnunet-service-auction.c.
|
static |
Callback called when a client disconnected from the service.
| cls | closure for the service |
| c | the client that disconnected |
| internal_cls | should be equal to c |
Definition at line 113 of file gnunet-service-auction.c.
References GNUNET_assert.
|
static |
Process auction requests.
| cls | closure |
| cfg | configuration to use |
| service | the initialized service |
Definition at line 129 of file gnunet-service-auction.c.
References cleanup_task, and GNUNET_SCHEDULER_add_shutdown().