Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

fo_server.h File Reference

fo_server function forwards and types More...

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


Detailed Description

fo_server function forwards and types

Author:
Christian Kruse, <cjk@wwwtech.de>

Definition in file fo_server.h.


Define Documentation

#define CF_SHARED_MODE   (SHM_R|SHM_W|(SHM_R>>3)|(SHM_R>>6))
 

Shared memory access rights. RW for creator, R for all other

Definition at line 181 of file fo_server.h.

#define CLIENT_PRIORITY_NUM   43
 

The number of clients when to change the priority settings

Definition at line 95 of file fo_server.h.

#define INITIAL_WORKERS_NUM   40
 

The number of initial workers

Definition at line 93 of file fo_server.h.

#define MAX_CLIENT_NUM   45
 

The number of clients when to handle a request directly, not by the queque.

Definition at line 96 of file fo_server.h.

#define MAX_WORKERS_NUM   45
 

The number of maximum workers

Definition at line 94 of file fo_server.h.

#define SCHEDULING   SCHED_OTHER
 

Scheduling policy; either SCHED_RR, SCHED_FIFO or SCHED_OTHER

Definition at line 22 of file fo_server.h.


Typedef Documentation

typedef struct s_client t_client
 

This struct is used to save client requests in the queque

typedef struct s_client_queque t_client_queque
 

This struct is used to manage a client queque

typedef struct s_head t_head
 

This is the head of the thread chain and a global 'I contain all necessary information' variable

typedef struct s_posting t_posting
 

this is the datatype for the postings

typedef struct s_server t_server
 

This struct is used to save a server socket.

typedef int(* t_server_init_filter)(int)
 

Used for server initialization plugins

Definition at line 209 of file fo_server.h.

typedef int(* t_server_protocol_handler)(int,const u_char **,int,rline_t *)
 

Used for protocol plugins

Definition at line 208 of file fo_server.h.

typedef struct s_thread t_thread
 

this is the datatype for the threads

typedef void(* t_worker)(int)
 

This is a worker function

Definition at line 84 of file fo_server.h.


Function Documentation

void terminate int  n  ) 
 

This function will be called when receiving a signal which says 'Hey, server, terminate!'

Parameters:
n The signal received

Definition at line 98 of file fo_server.c.


Variable Documentation

t_head head
 

contains all necessary data

Definition at line 200 of file fo_server.h.

int RUN
 

Run while this variable is != 0

Definition at line 199 of file fo_server.h.


Generated on Sun Apr 25 16:37:39 2004 for Classic Forum by doxygen 1.3.5