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

fo_view.c File Reference

The forum viewer program. More...

#include "config.h"
#include "defines.h"
#include <stdio.h>
#include <stdlib.h>
#include <dlfcn.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
#include <unistd.h>
#include <sys/un.h>
#include <sys/ipc.h>
#include <sys/shm.h>
#include "readline.h"
#include "hashlib.h"
#include "utils.h"
#include "configparser.h"
#include "cfcgi.h"
#include "template.h"
#include "clientlib.h"
#include "fo_view.h"

Go to the source code of this file.

Functions

int ignre (t_configfile *cf, u_char **args, int argnum)
void print_thread_structure (t_cl_thread *thread, t_cf_hash *head)
void send_posting (t_cf_hash *head, void *shm_ptr, u_int64_t tid, u_int64_t mid)
void send_threadlist (void *shm_ptr, t_cf_hash *head)
int main (int argc, char *argv[], char *env[])


Detailed Description

The forum viewer program.

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

Definition in file fo_view.c.


Function Documentation

int ignre t_configfile cf,
u_char **  args,
int  argnum
 

Dummy function, for ignoring unknown directives

Definition at line 51 of file fo_view.c.

int main int  argc,
char *  argv[],
char *  env[]
 

The main function of the forum viewer. No command line switches used.

Parameters:
argc The argument count
argv The argument vector
env The environment vector
Returns:
EXIT_SUCCESS on success, EXIT_FAILURE on error

Definition at line 377 of file fo_view.c.

void print_thread_structure t_cl_thread thread,
t_cf_hash head
 

This function prints a thread structure

Parameters:
thread The thread structure
head The CGI hash

Definition at line 63 of file fo_view.c.

void send_posting t_cf_hash head,
void *  shm_ptr,
u_int64_t  tid,
u_int64_t  mid
 

This function sends a posting to the user

Parameters:
head The CGI hash
shm_ptr Pointer to the shared memory segment
tid The thread id
mid The message id

Definition at line 145 of file fo_view.c.

void send_threadlist void *  shm_ptr,
t_cf_hash head
 

This function sends the threadlist to the client

Parameters:
shm_ptr Pointer to the shared memory segment
head The CGI hash

Definition at line 213 of file fo_view.c.


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