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

s_head Struct Reference

#include <fo_server.h>


Data Fields

t_cf_rwlock lock
pthread_t workers [MAX_WORKERS_NUM]
int fresh
t_string cache_visible
t_string cache_invisible
time_t date_visible
time_t date_invisible
t_threadthread
t_threadlast
u_int64_t tid
u_int64_t mid
int locked
pthread_mutex_t log_lock
FILE * std
FILE * err
t_client_queque clients
t_cf_mutex server_lock
t_serverservers
int shm_ids [2]
int shm_sem
void * shm_ptrs [2]
t_cf_mutex shm_lock
t_cf_hashprotocol_handlers
t_cf_hashthreads
t_cf_rwlock threads_lock


Detailed Description

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

Definition at line 122 of file fo_server.h.


Field Documentation

t_string s_head::cache_invisible
 

The cache excluding invisible messages and threads

Definition at line 136 of file fo_server.h.

t_string s_head::cache_visible
 

The cache including invisible messages and threads

Definition at line 133 of file fo_server.h.

t_client_queque s_head::clients
 

Since the server cannot handle *very* high traffic, we use a worker model and a queque

Definition at line 169 of file fo_server.h.

time_t s_head::date_invisible
 

The date when the cache containing all messages and threads has been created

Definition at line 142 of file fo_server.h.

time_t s_head::date_visible
 

The date when the cache containing only the visible messages and threads has been created

Definition at line 139 of file fo_server.h.

FILE* s_head::err
 

Logfile handle for error output

Definition at line 163 of file fo_server.h.

int s_head::fresh
 

Is the cache fresh?

Definition at line 130 of file fo_server.h.

t_thread * s_head::last
 

The pointer to the first thread

Definition at line 145 of file fo_server.h.

t_cf_rwlock s_head::lock
 

The read-write-lock

Definition at line 124 of file fo_server.h.

int s_head::locked
 

True if the forum is locked

Definition at line 154 of file fo_server.h.

pthread_mutex_t s_head::log_lock
 

The logfile mutex to protect the logfile handles

Definition at line 157 of file fo_server.h.

u_int64_t s_head::mid
 

The last mid

Definition at line 151 of file fo_server.h.

t_cf_hash* s_head::protocol_handlers
 

This hash contains all the CFTP protocol handlers

Definition at line 190 of file fo_server.h.

t_cf_mutex s_head::server_lock
 

The mutex to synchronize access to the server sockets

Definition at line 174 of file fo_server.h.

t_server* s_head::servers
 

the Server sockets

Definition at line 177 of file fo_server.h.

int s_head::shm_ids[2]
 

The shared memory id

Definition at line 183 of file fo_server.h.

t_cf_mutex s_head::shm_lock
 

The mutex to synchronize access to this information

Definition at line 186 of file fo_server.h.

void* s_head::shm_ptrs[2]
 

The pointer to the shared memory segment

Definition at line 185 of file fo_server.h.

int s_head::shm_sem
 

The locking semaphore id

Definition at line 184 of file fo_server.h.

FILE* s_head::std
 

Logfile handle for standard output

Definition at line 160 of file fo_server.h.

t_thread* s_head::thread
 

The pointer to the first thread

Definition at line 145 of file fo_server.h.

t_cf_hash* s_head::threads
 

This hash contains all threads

Definition at line 193 of file fo_server.h.

t_cf_rwlock s_head::threads_lock
 

lock for the threads hash

Definition at line 196 of file fo_server.h.

u_int64_t s_head::tid
 

The last tid

Definition at line 148 of file fo_server.h.

pthread_t s_head::workers[MAX_WORKERS_NUM]
 

We wanna save the workers to pthread_join them at shutdown

Definition at line 127 of file fo_server.h.


The documentation for this struct was generated from the following file:
Generated on Sun Apr 25 16:37:40 2004 for Classic Forum by doxygen 1.3.5