mod_echo.c revision cc910c475085f94bd30fc1b6e16363872424f780
bff4b3f816be4c1e1d8ded76f1d5af786839e1a9Christian Maedertypedef struct
bff4b3f816be4c1e1d8ded76f1d5af786839e1a9Christian Maederstatic void *create_echo_server_config(pool *p,server_rec *s)
bff4b3f816be4c1e1d8ded76f1d5af786839e1a9Christian Maeder EchoConfig *pConfig=ap_pcalloc(p,sizeof *pConfig);
329c739bc05b8ce8d54f81071d0826ff771d1f78Christian Maederstatic const char *echo_on(cmd_parms *cmd, void *dummy, char *arg)
bff4b3f816be4c1e1d8ded76f1d5af786839e1a9Christian Maeder EchoConfig *pConfig=ap_get_module_config(cmd->server->module_config,
bff4b3f816be4c1e1d8ded76f1d5af786839e1a9Christian Maederstatic int process_echo_connection(conn_rec *c)
bff4b3f816be4c1e1d8ded76f1d5af786839e1a9Christian Maeder EchoConfig *pConfig=ap_get_module_config(c->base_server->module_config,
bff4b3f816be4c1e1d8ded76f1d5af786839e1a9Christian Maeder{ "ProtocolEcho", echo_on, NULL, RSRC_CONF, RAW_ARGS,
4bbd808612c2580ae6e0495a155997a6bb47ecf3Christian Maeder "Run an echo server on this host" },
bff4b3f816be4c1e1d8ded76f1d5af786839e1a9Christian Maeder ap_hook_process_connection(process_echo_connection,NULL,NULL,HOOK_MIDDLE);
bff4b3f816be4c1e1d8ded76f1d5af786839e1a9Christian Maeder NULL, /* create per-directory config structure */
bff4b3f816be4c1e1d8ded76f1d5af786839e1a9Christian Maeder NULL, /* merge per-directory config structures */
bff4b3f816be4c1e1d8ded76f1d5af786839e1a9Christian Maeder create_echo_server_config, /* create per-server config structure */
d9be582b00d420e2fe0737fcb07c9aa3d235a774Christian Maeder NULL, /* merge per-server config structures */