Functions related to starting services. More...
Go to the source code of this file.
Macros | |
#define | GNUNET_SERVICE_MAIN(service_name, service_options, init_cb, connect_cb, disconnect_cb, cls, ...) |
Creates the "main" function for a GNUnet service. More... | |
Typedefs | |
typedef void(* | GNUNET_SERVICE_InitCallback) (void *cls, const struct GNUNET_CONFIGURATION_Handle *cfg, struct GNUNET_SERVICE_Handle *sh) |
Callback to initialize a service, called exactly once when the service is run. More... | |
typedef void *(* | GNUNET_SERVICE_ConnectHandler) (void *cls, struct GNUNET_SERVICE_Client *c, struct GNUNET_MQ_Handle *mq) |
Callback to be called when a client connects to the service. More... | |
typedef void(* | GNUNET_SERVICE_DisconnectHandler) (void *cls, struct GNUNET_SERVICE_Client *c, void *internal_cls) |
Callback to be called when a client disconnected from the service. More... | |
Enumerations | |
enum | GNUNET_SERVICE_Options { GNUNET_SERVICE_OPTION_NONE = 0 , GNUNET_SERVICE_OPTION_MANUAL_SHUTDOWN = 1 , GNUNET_SERVICE_OPTION_SOFT_SHUTDOWN = 2 , GNUNET_SERVICE_OPTION_SHUTDOWN_BITMASK = 3 , GNUNET_SERVICE_OPTION_CLOSE_LSOCKS = 4 } |
Options for the service (bitmask). More... | |
Functions related to starting services.
Definition in file gnunet_service_lib.h.