comparison src/c/http.c @ 2172:3b4a5604ed97

Beautify '-h' output for web servers
author Adam Chlipala <adam@chlipala.net>
date Thu, 20 Aug 2015 15:11:40 -0400
parents 1839df6ed755
children
comparison
equal deleted inserted replaced
2171:7187068f56f5 2172:3b4a5604ed97
312 312
313 return NULL; 313 return NULL;
314 } 314 }
315 315
316 static void help(char *cmd) { 316 static void help(char *cmd) {
317 printf("Usage: %s [-p <port>] [-a <IP address>] [-t <thread count>] [-k] [-q] [-T SEC]\nThe '-k' option turns on HTTP keepalive.\nThe '-q' option turns off some chatter on stdout.\nThe -T option sets socket recv timeout (0 disables timeout, default is 5 sec)", cmd); 317 printf("Usage: %s [-p <port>] [-a <IP address>] [-t <thread count>] [-k] [-q] [-T SEC]\nThe '-k' option turns on HTTP keepalive.\nThe '-q' option turns off some chatter on stdout.\nThe '-T' option sets socket recv timeout (0 disables timeout, default is 5 sec).\n", cmd);
318 } 318 }
319 319
320 static void sigint(int signum) { 320 static void sigint(int signum) {
321 printf("Exiting....\n"); 321 printf("Exiting....\n");
322 exit(0); 322 exit(0);