Go to the source code of this file.
Data Structures | |
| struct | s_client |
| struct | s_client_queque |
| struct | s_head |
| struct | s_posting |
| struct | s_server |
| struct | s_thread |
Defines | |
| #define | SCHEDULING SCHED_OTHER |
| #define | INITIAL_WORKERS_NUM 40 |
| #define | MAX_WORKERS_NUM 45 |
| #define | CLIENT_PRIORITY_NUM 43 |
| #define | MAX_CLIENT_NUM 45 |
| #define | CF_SHARED_MODE (SHM_R|SHM_W|(SHM_R>>3)|(SHM_R>>6)) |
Typedefs | |
| typedef s_posting | t_posting |
| typedef s_thread | t_thread |
| typedef void(* | t_worker )(int) |
| typedef s_client | t_client |
| typedef s_client_queque | t_client_queque |
| typedef s_server | t_server |
| typedef s_head | t_head |
| typedef int(* | t_server_protocol_handler )(int, const u_char **, int, rline_t *) |
| typedef int(* | t_server_init_filter )(int) |
Functions | |
| void | terminate (int n) |
Variables | |
| int | RUN |
| t_head | head |
Definition in file fo_server.h.
|
|
Shared memory access rights. RW for creator, R for all other Definition at line 181 of file fo_server.h. |
|
|
The number of clients when to change the priority settings Definition at line 95 of file fo_server.h. |
|
|
The number of initial workers Definition at line 93 of file fo_server.h. |
|
|
The number of clients when to handle a request directly, not by the queque. Definition at line 96 of file fo_server.h. |
|
|
The number of maximum workers Definition at line 94 of file fo_server.h. |
|
|
Scheduling policy; either SCHED_RR, SCHED_FIFO or SCHED_OTHER Definition at line 22 of file fo_server.h. |
|
|
This struct is used to save client requests in the queque |
|
|
This struct is used to manage a client queque |
|
|
This is the head of the thread chain and a global 'I contain all necessary information' variable |
|
|
this is the datatype for the postings |
|
|
This struct is used to save a server socket. |
|
|
Used for server initialization plugins Definition at line 209 of file fo_server.h. |
|
|
Used for protocol plugins Definition at line 208 of file fo_server.h. |
|
|
this is the datatype for the threads |
|
|
This is a worker function Definition at line 84 of file fo_server.h. |
|
|
This function will be called when receiving a signal which says 'Hey, server, terminate!'
Definition at line 98 of file fo_server.c. |
|
|
contains all necessary data Definition at line 200 of file fo_server.h. |
|
|
Run while this variable is != 0 Definition at line 199 of file fo_server.h. |
1.3.5