Welcome to mirror list, hosted at ThFree Co, Russian Federation.

ngx_listen.h « core « src - github.com/nginx/nginx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: cf4a2ad0f69ae302665cb2826f5e050a3e1e6189 (plain)
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
42
43
44
#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_ */