mod_echo.c revision 07afa9bf546b1619bb1fe7f7862f95e0c7e5abf3
#include "httpd.h"
#include "http_config.h"
#include "http_connection.h"
typedef struct
{
int bEnabled;
} EchoConfig;
{
return pConfig;
}
{
&echo_module);
return NULL;
}
static int process_echo_connection(conn_rec *c)
{
char buf[1024];
&echo_module);
return DECLINED;
for( ; ; )
{
int w;
if(r <= 0)
break;
if(w != r)
break;
}
return OK;
}
static const command_rec echo_cmds[] = {
"Run an echo server on this host" },
{ NULL }
};
static void register_hooks()
{
}
NULL, /* post_config */
NULL, /* open_logs */
NULL, /* child_init */
NULL, /* create per-directory config structure */
NULL, /* merge per-directory config structures */
create_echo_server_config, /* create per-server config structure */
NULL, /* merge per-server config structures */
echo_cmds, /* command table */
NULL, /* handlers */
NULL, /* check auth */
NULL, /* check access */
register_hooks /* register hooks */
};