GNUnet 0.21.1
ServiceList Struct Reference

List of our services. More...

Collaboration diagram for ServiceList:
[legend]

Data Fields

struct ServiceListnext
 This is a doubly-linked list. More...
 
struct ServiceListprev
 This is a doubly-linked list. More...
 
struct ServiceListeningInfolisten_head
 Linked list of listen sockets associated with this service. More...
 
struct ServiceListeningInfolisten_tail
 Linked list of listen sockets associated with this service. More...
 
char * name
 Name of the service. More...
 
char * binary
 Name of the binary used. More...
 
char * config
 Name of the configuration file used. More...
 
struct GNUNET_SERVICE_Clientkilling_client
 Client to notify upon kill completion (waitpid), NULL if we should simply restart the process. More...
 
uint64_t killing_client_request_id
 ID of the request that killed the service (for reporting back). More...
 
struct GNUNET_OS_Processproc
 Process structure pointer of the child. More...
 
struct GNUNET_TIME_Relative backoff
 Process exponential backoff time. More...
 
struct GNUNET_TIME_Absolute last_started_at
 Absolute time at which the process was (re-)started last. More...
 
struct GNUNET_TIME_Absolute restart_at
 Absolute time at which the process is scheduled to restart in case of death. More...
 
struct GNUNET_TIME_Absolute killed_at
 Time we asked the service to shut down (used to calculate time it took the service to terminate). More...
 
int force_start
 Is this service to be started by default (or did a client tell us explicitly to start it)? GNUNET_NO if the service is started only upon 'accept' on a listen socket or possibly explicitly by a client changing the value. More...
 
int pipe_control
 Should we use pipes to signal this process? (YES for Java binaries and if we are on Windoze). More...
 
int last_exit_status
 Last exit status of the process. More...
 

Detailed Description

List of our services.

Definition at line 110 of file gnunet-service-arm.c.

Field Documentation

◆ next

struct ServiceList* ServiceList::next

◆ prev

struct ServiceList* ServiceList::prev

This is a doubly-linked list.

Definition at line 120 of file gnunet-service-arm.c.

◆ listen_head

struct ServiceListeningInfo* ServiceList::listen_head

Linked list of listen sockets associated with this service.

Definition at line 125 of file gnunet-service-arm.c.

Referenced by create_listen_socket(), delayed_restart_task(), free_service(), maint_child_death(), shutdown_task(), and start_process().

◆ listen_tail

struct ServiceListeningInfo* ServiceList::listen_tail

Linked list of listen sockets associated with this service.

Definition at line 130 of file gnunet-service-arm.c.

Referenced by create_listen_socket(), and shutdown_task().

◆ name

◆ binary

char* ServiceList::binary

Name of the binary used.

Definition at line 140 of file gnunet-service-arm.c.

Referenced by free_service(), handle_list(), maint_child_death(), setup_service(), and start_process().

◆ config

char* ServiceList::config

Name of the configuration file used.

Definition at line 145 of file gnunet-service-arm.c.

Referenced by free_service(), typescriptdomain.MyHtmlBuilder::init_highlighter(), setup_service(), and start_process().

◆ killing_client

struct GNUNET_SERVICE_Client* ServiceList::killing_client

Client to notify upon kill completion (waitpid), NULL if we should simply restart the process.

Definition at line 151 of file gnunet-service-arm.c.

Referenced by handle_list(), handle_stop(), and maint_child_death().

◆ killing_client_request_id

uint64_t ServiceList::killing_client_request_id

ID of the request that killed the service (for reporting back).

Definition at line 156 of file gnunet-service-arm.c.

Referenced by handle_stop(), and maint_child_death().

◆ proc

struct GNUNET_OS_Process* ServiceList::proc

Process structure pointer of the child.

Definition at line 161 of file gnunet-service-arm.c.

Referenced by delayed_restart_task(), handle_list(), handle_start(), handle_stop(), maint_child_death(), shutdown_task(), and start_process().

◆ backoff

struct GNUNET_TIME_Relative ServiceList::backoff

Process exponential backoff time.

Definition at line 166 of file gnunet-service-arm.c.

Referenced by maint_child_death(), and setup_service().

◆ last_started_at

struct GNUNET_TIME_Absolute ServiceList::last_started_at

Absolute time at which the process was (re-)started last.

Definition at line 171 of file gnunet-service-arm.c.

Referenced by handle_list(), and start_process().

◆ restart_at

struct GNUNET_TIME_Absolute ServiceList::restart_at

Absolute time at which the process is scheduled to restart in case of death.

Definition at line 176 of file gnunet-service-arm.c.

Referenced by delayed_restart_task(), handle_list(), maint_child_death(), and setup_service().

◆ killed_at

struct GNUNET_TIME_Absolute ServiceList::killed_at

Time we asked the service to shut down (used to calculate time it took the service to terminate).

Definition at line 182 of file gnunet-service-arm.c.

Referenced by handle_stop(), maint_child_death(), and shutdown_task().

◆ force_start

int ServiceList::force_start

Is this service to be started by default (or did a client tell us explicitly to start it)? GNUNET_NO if the service is started only upon 'accept' on a listen socket or possibly explicitly by a client changing the value.

Definition at line 189 of file gnunet-service-arm.c.

Referenced by delayed_restart_task(), handle_start(), handle_stop(), run(), and setup_service().

◆ pipe_control

int ServiceList::pipe_control

Should we use pipes to signal this process? (YES for Java binaries and if we are on Windoze).

Definition at line 195 of file gnunet-service-arm.c.

Referenced by setup_service(), and start_process().

◆ last_exit_status

int ServiceList::last_exit_status

Last exit status of the process.

Definition at line 200 of file gnunet-service-arm.c.

Referenced by handle_list(), and maint_child_death().


The documentation for this struct was generated from the following file: