mod_echo.c revision 8e56baa9aadebffd9713a70d05a7d6f0e3e6dbab
#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()
{
}
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 */
};