Groonga 3.0.9 Source Code Document
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Data Structures | Macros | Enumerations | Functions
groonga_suggest_httpd.c File Reference
#include <str.h>
#include <stdio.h>
#include <signal.h>
#include <string.h>
#include <sys/types.h>
#include <sys/time.h>
#include <time.h>
#include <stdlib.h>
#include <unistd.h>
#include <err.h>
#include <fcntl.h>
#include <sys/queue.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <sys/resource.h>
#include "zmq_compatible.h"
#include <event.h>
#include <evhttp.h>
#include <msgpack.h>
#include <groonga.h>
#include <pthread.h>
#include "util.h"
Include dependency graph for groonga_suggest_httpd.c:

Go to the source code of this file.

Data Structures

struct  thd_data
struct  recv_thd_data

Macros

#define DEFAULT_PORT   8080
#define DEFAULT_MAX_THREADS   8
#define CONST_STR_LEN(x)   x, x ? sizeof(x) - 1 : 0
#define LISTEN_BACKLOG   756
#define MIN_MAX_FDS   2048
#define MAX_THREADS   128 /* max 256 */
#define RUN_MODE_MASK   0x007f
#define RUN_MODE_ENABLE_MAX_FD_CHECK   0x0080
#define CMD_BUF_SIZE   1024

Enumerations

enum  run_mode { run_mode_none = 0, run_mode_usage, run_mode_daemon, run_mode_error }

Functions

void timeout_handler (int fd, short events, void *arg)
int main (int argc, char **argv)

Macro Definition Documentation

#define CMD_BUF_SIZE   1024

Definition at line 91 of file groonga_suggest_httpd.c.

#define CONST_STR_LEN (   x)    x, x ? sizeof(x) - 1 : 0

Definition at line 50 of file groonga_suggest_httpd.c.

#define DEFAULT_MAX_THREADS   8

Definition at line 48 of file groonga_suggest_httpd.c.

#define DEFAULT_PORT   8080

Definition at line 47 of file groonga_suggest_httpd.c.

#define LISTEN_BACKLOG   756

Definition at line 52 of file groonga_suggest_httpd.c.

#define MAX_THREADS   128 /* max 256 */

Definition at line 54 of file groonga_suggest_httpd.c.

#define MIN_MAX_FDS   2048

Definition at line 53 of file groonga_suggest_httpd.c.

#define RUN_MODE_ENABLE_MAX_FD_CHECK   0x0080

Definition at line 64 of file groonga_suggest_httpd.c.

#define RUN_MODE_MASK   0x007f

Definition at line 63 of file groonga_suggest_httpd.c.

Enumeration Type Documentation

enum run_mode
Enumerator:
run_mode_none 
run_mode_usage 
run_mode_daemon 
run_mode_error 

Definition at line 56 of file groonga_suggest_httpd.c.

Function Documentation

int main ( int  argc,
char **  argv 
)

Definition at line 713 of file groonga_suggest_httpd.c.

Here is the call graph for this function:

void timeout_handler ( int  fd,
short  events,
void *  arg 
)

Definition at line 399 of file groonga_suggest_httpd.c.