view 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
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;
    char             *addr_text;
    size_t            addr_textlen;

    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_ */