mod_echo.c revision af878d981838de777d34f6226393266d39697464
#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, /* 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 */
register_hooks /* register hooks */
};