blob: 21f61783cca6b0f89c33f6c530c995fbc5865765 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
#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;
void *server;
int family;
int type;
int protocol;
void *addr;
size_t addr_len;
char *addr_text;
int backlog;
unsigned non_blocking:1;
unsigned shared:1; /* shared between threads or processes */
#if (HAVE_DEFERRED_ACCEPT)
unsigned deferred_accept:1;
#endif
} ngx_listen_t;
#endif /* _NGX_SERVER_H_INCLUDED_ */
|