program that does template More...
Go to the source code of this file.
Functions | |
static void | cleanup_task (void *cls) |
Task run during shutdown. More... | |
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. More... | |
static void | client_disconnect_cb (void *cls, struct GNUNET_SERVICE_Client *c, void *internal_cls) |
Callback called when a client disconnected from the service. More... | |
static void | run (void *cls, const struct GNUNET_CONFIGURATION_Handle *cfg, struct GNUNET_SERVICE_Handle *service) |
Process template requests. More... | |
GNUNET_SERVICE_MAIN (GNUNET_OS_project_data_gnunet(), "template", GNUNET_SERVICE_OPTION_NONE, &run, &client_connect_cb, &client_disconnect_cb, NULL, GNUNET_MQ_handler_end()) | |
Define "main" method using service macro. More... | |
program that does template
Definition in file gnunet-service-template.c.
|
static |
Task run during shutdown.
cls | unused |
Definition at line 36 of file gnunet-service-template.c.
Referenced by run().
|
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 51 of file gnunet-service-template.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 67 of file gnunet-service-template.c.
References GNUNET_assert.
|
static |
Process template requests.
cls | closure |
cfg | configuration to use |
service | the initialized service |
Definition at line 83 of file gnunet-service-template.c.
References cleanup_task(), and GNUNET_SCHEDULER_add_shutdown().
GNUNET_SERVICE_MAIN | ( | GNUNET_OS_project_data_gnunet() | , |
"template" | , | ||
GNUNET_SERVICE_OPTION_NONE | , | ||
& | run, | ||
& | client_connect_cb, | ||
& | client_disconnect_cb, | ||
NULL | , | ||
GNUNET_MQ_handler_end() | |||
) |
Define "main" method using service macro.