mod_echo.c revision 0c17e19b2f9ebb28c25f9efa6cd58d257e1ad728
#include "ap_config.h"
#include "ap_mmn.h"
#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( ; ; )
{
ap_ssize_t r, 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(void)
{
}
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 ap_table_t */
NULL, /* handlers */
register_hooks /* register hooks */
};