comparison src/core/ngx_listen.h @ 6:669801705ab1

nginx-0.0.1-2002-08-26-19:18:19 import
author Igor Sysoev <igor@sysoev.ru>
date Mon, 26 Aug 2002 15:18:19 +0000
parents 34a521b1a148
children 77c7629a2627
comparison
equal deleted inserted replaced
5:62b1a364857c 6:669801705ab1
9 #include <ngx_connection.h> 9 #include <ngx_connection.h>
10 10
11 typedef struct { 11 typedef struct {
12 ngx_socket_t fd; 12 ngx_socket_t fd;
13 13
14 void *addr; 14 struct sockaddr *sockaddr;
15 size_t addr_len; 15 socklen_t socklen;
16 char *addr_text; 16 size_t addr;
17 char *addr_text;
18 size_t addr_textlen;
17 19
18 int family; 20 int family;
19 int type; 21 int type;
20 int protocol; 22 int protocol;
23 int flags;
21 24
22 ngx_log_t *log; 25 ngx_log_t *log;
23 void *server; 26 void *server;
24 int (*handler)(ngx_connection_t *c); 27 int (*handler)(ngx_connection_t *c);
25 28
26 int backlog; 29 int backlog;
30 time_t post_accept_timeout;
27 31
28 unsigned done:1; 32 unsigned done:1;
29 unsigned close:1; 33 unsigned inherited:1;
30 unsigned nonblocking:1; 34 unsigned nonblocking:1;
31 #if 0 35 #if 0
32 unsigned overlapped:1; 36 unsigned overlapped:1;
33 #endif 37 #endif
34 unsigned shared:1; /* shared between threads or processes */ 38 unsigned shared:1; /* shared between threads or processes */