view src/core/ngx_server.h @ 0:4eff17414a43

nginx-0.0.1-2002-08-06-20:39:45 import The first code that uses "ngx_" prefix, the previous one used "gx_" prefix. At that point the code is not yet usable. The first draft ideas are dated back to 23.10.2001.
author Igor Sysoev <igor@sysoev.ru>
date Tue, 06 Aug 2002 16:39:45 +0000
parents
children ffffe1499bce
line wrap: on
line source

#ifndef _NGX_SERVER_H_INCLUDED_
#define _NGX_SERVER_H_INCLUDED_


#include <ngx_config.h>
#include <ngx_types.h>
#include <ngx_alloc.h>

typedef struct {
    int          log_level;
    ngx_pool_t  *pool;
    int        (*handler)(void *data);
    int          buff_size;
} ngx_server_t;


typedef struct {
    ngx_socket_t  fd;

    ngx_log_t    *log;
    ngx_server_t *server;

    unsigned      shared:1;
#if (HAVE_DEFERRED_ACCEPT)
    unsigned      accept_filter:1;
#endif
} ngx_listen_t;


#endif /* _NGX_SERVER_H_INCLUDED_ */