/* prototypes for forward refernces */
static int handle_request_help (HANDLER_PROTO);
+static int handle_request_ping (HANDLER_PROTO);
/*
* Functions
"HELP [<command>]\n",
NULL, /* special! */
},
+ {
+ "PING",
+ handle_request_ping,
+ CMD_CONTEXT_CLIENT,
+ "PING\n"
+ ,
+ "PING given, PONG returned\n"
+ },
{
"BATCH",
batch_start,
return send_response(sock, RESP_OK, resp_txt);
} /* }}} int handle_request_help */
+static int handle_request_ping (HANDLER_PROTO) /* {{{ */
+{
+ return send_response(sock, RESP_OK, "%s\n", "PONG");
+} /* }}} int handle_request_ping */
+
static int handle_request (DISPATCH_PROTO) /* {{{ */
{
char *buffer_ptr = buffer;