Mercurial > hg > nginx
view src/core/ngx_listen.h @ 24:77c7629a2627
nginx-0.0.1-2002-12-10-21:05:12 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 10 Dec 2002 18:05:12 +0000 |
parents | 669801705ab1 |
children | 0e81ac0bb3e2 |
line wrap: on
line source
#ifndef _NGX_LISTEN_H_INCLUDED_ #define _NGX_LISTEN_H_INCLUDED_ #include <ngx_config.h> #include <ngx_log.h> #include <ngx_types.h> #include <ngx_socket.h> #include <ngx_connection.h> typedef struct { ngx_socket_t fd; struct sockaddr *sockaddr; socklen_t socklen; size_t addr; ngx_str_t addr_text; int family; int type; int protocol; int flags; ngx_log_t *log; void *server; int (*handler)(ngx_connection_t *c); int backlog; time_t post_accept_timeout; unsigned done:1; unsigned inherited:1; unsigned nonblocking:1; #if 0 unsigned overlapped:1; #endif unsigned shared:1; /* shared between threads or processes */ #if (HAVE_DEFERRED_ACCEPT) unsigned deferred_accept:1; #endif } ngx_listen_t; #endif /* _NGX_LISTEN_H_INCLUDED_ */