|
struct GNUNET_SERVICE_Handle * | GNUNET_SERVICE_start (const char *service_name, const struct GNUNET_CONFIGURATION_Handle *cfg, GNUNET_SERVICE_ConnectHandler connect_cb, GNUNET_SERVICE_DisconnectHandler disconnect_cb, void *cls, const struct GNUNET_MQ_MessageHandler *handlers) |
| Low-level function to start a service if the scheduler is already running. More...
|
|
void | GNUNET_SERVICE_stop (struct GNUNET_SERVICE_Handle *srv) |
| Stops a service that was started with GNUNET_SERVICE_start(). More...
|
|
int | GNUNET_SERVICE_run_ (int argc, char *const *argv, const char *service_name, enum GNUNET_SERVICE_Options options, GNUNET_SERVICE_InitCallback service_init_cb, GNUNET_SERVICE_ConnectHandler connect_cb, GNUNET_SERVICE_DisconnectHandler disconnect_cb, void *cls, const struct GNUNET_MQ_MessageHandler *handlers) |
| Creates the "main" function for a GNUnet service. More...
|
|
int | GNUNET_SERVICE_register_ (const char *service_name, enum GNUNET_SERVICE_Options options, GNUNET_SERVICE_InitCallback service_init_cb, GNUNET_SERVICE_ConnectHandler connect_cb, GNUNET_SERVICE_DisconnectHandler disconnect_cb, void *cls, const struct GNUNET_MQ_MessageHandler *handlers) |
| Registers the GNUnet service to be scheduled as part of a monilithic libgnunet. More...
|
|
void | GNUNET_SERVICE_main (int argc, char *const *argv, struct GNUNET_CONFIGURATION_Handle *cfg, enum GNUNET_GenericReturnValue with_scheduler) |
| Run the mainloop in a monolithic libgnunet. More...
|
|
void | GNUNET_SERVICE_suspend (struct GNUNET_SERVICE_Handle *sh) |
| Suspend accepting connections from the listen socket temporarily. More...
|
|
void | GNUNET_SERVICE_resume (struct GNUNET_SERVICE_Handle *sh) |
| Resume accepting connections from the listen socket. More...
|
|
void | GNUNET_SERVICE_client_continue (struct GNUNET_SERVICE_Client *c) |
| Continue receiving further messages from the given client. More...
|
|
struct GNUNET_MQ_Handle * | GNUNET_SERVICE_client_get_mq (struct GNUNET_SERVICE_Client *c) |
| Obtain the message queue of c. More...
|
|
void | GNUNET_SERVICE_client_disable_continue_warning (struct GNUNET_SERVICE_Client *c) |
| Disable the warning the server issues if a message is not acknowledged in a timely fashion. More...
|
|
void | GNUNET_SERVICE_client_drop (struct GNUNET_SERVICE_Client *c) |
| Ask the server to disconnect from the given client. More...
|
|
void | GNUNET_SERVICE_shutdown (struct GNUNET_SERVICE_Handle *sh) |
| Explicitly stops the service. More...
|
|
void | GNUNET_SERVICE_client_mark_monitor (struct GNUNET_SERVICE_Client *c) |
| Set the 'monitor' flag on this client. More...
|
|
void | GNUNET_SERVICE_client_persist (struct GNUNET_SERVICE_Client *c) |
| Set the persist option on this client. More...
|
|
Functions related to starting services.
Definition in file gnunet_service_lib.h.