Apache HTTPD
Classes | Macros | Typedefs | Functions | Variables
mod_example_ipc.c File Reference
#include "apr.h"
#include "apr_strings.h"
#include "httpd.h"
#include "http_config.h"
#include "http_core.h"
#include "http_log.h"
#include "http_protocol.h"
#include "util_mutex.h"
#include "ap_config.h"

Go to the source code of this file.

Classes

struct  exipc_data
 

Macros

#define HTML_HEADER
 
#define HTML_FOOTER   "</body>\n</html>\n"
 
#define CAMPOUT   10
 
#define MAXCAMP   10
 
#define SLEEPYTIME   1000
 

Typedefs

typedef struct exipc_data exipc_data
 

Functions

static apr_status_t shm_cleanup_wrapper (void *unused)
 
static int exipc_pre_config (apr_pool_t *pconf, apr_pool_t *plog, apr_pool_t *ptemp)
 
static int exipc_post_config (apr_pool_t *pconf, apr_pool_t *plog, apr_pool_t *ptemp, server_rec *s)
 
static void exipc_child_init (apr_pool_t *p, server_rec *s)
 
static int exipc_handler (request_rec *r)
 
static void exipc_register_hooks (apr_pool_t *p)
 

Variables

apr_shm_texipc_shm
 
charshmfilename
 
apr_global_mutex_texipc_mutex
 
static const charexipc_mutex_type = "example-ipc-shm"
 
static int *const aplog_module_index = &( example_ipc_module.module_index)
 

Macro Definition Documentation

◆ CAMPOUT

#define CAMPOUT   10

Definition at line 71 of file mod_example_ipc.c.

◆ HTML_FOOTER

#define HTML_FOOTER   "</body>\n</html>\n"

Definition at line 68 of file mod_example_ipc.c.

◆ HTML_HEADER

#define HTML_HEADER
Value:
"<html>\n<head>\n<title>Mod_example_IPC Status Page " \
"</title>\n</head>\n<body>\n<h1>Mod_example_IPC Status</h1>\n"

Definition at line 66 of file mod_example_ipc.c.

◆ MAXCAMP

#define MAXCAMP   10

Definition at line 73 of file mod_example_ipc.c.

◆ SLEEPYTIME

#define SLEEPYTIME   1000

Definition at line 75 of file mod_example_ipc.c.

Typedef Documentation

◆ exipc_data

Function Documentation

◆ exipc_child_init()

static void exipc_child_init ( apr_pool_t p,
server_rec s 
)
static

Definition at line 196 of file mod_example_ipc.c.

◆ exipc_handler()

static int exipc_handler ( request_rec r)
static

< Module declines to handle

< Module has handled this stage.

Definition at line 221 of file mod_example_ipc.c.

◆ exipc_post_config()

static int exipc_post_config ( apr_pool_t pconf,
apr_pool_t plog,
apr_pool_t ptemp,
server_rec s 
)
static

< Module has handled this stage.

< Module has handled this stage.

Definition at line 119 of file mod_example_ipc.c.

◆ exipc_pre_config()

static int exipc_pre_config ( apr_pool_t pconf,
apr_pool_t plog,
apr_pool_t ptemp 
)
static

< Module has handled this stage.

Definition at line 107 of file mod_example_ipc.c.

◆ exipc_register_hooks()

static void exipc_register_hooks ( apr_pool_t p)
static

Definition at line 339 of file mod_example_ipc.c.

◆ shm_cleanup_wrapper()

static apr_status_t shm_cleanup_wrapper ( void *  unused)
static

< Module has handled this stage.

Definition at line 94 of file mod_example_ipc.c.

Variable Documentation

◆ aplog_module_index

int* const aplog_module_index = &( example_ipc_module.module_index)
static

Definition at line 348 of file mod_example_ipc.c.

◆ exipc_mutex

apr_global_mutex_t* exipc_mutex

Definition at line 79 of file mod_example_ipc.c.

◆ exipc_mutex_type

const char* exipc_mutex_type = "example-ipc-shm"
static

Definition at line 80 of file mod_example_ipc.c.

◆ exipc_shm

apr_shm_t* exipc_shm

Definition at line 77 of file mod_example_ipc.c.

◆ shmfilename

char* shmfilename

Definition at line 78 of file mod_example_ipc.c.