comparison src/core/ngx_connection.h @ 396:6f3b20c1ac50

nginx-0.0.7-2004-07-18-23:11:20 import
author Igor Sysoev <igor@sysoev.ru>
date Sun, 18 Jul 2004 19:11:20 +0000
parents 5659d773cfa8
children 4e21d1291a14
comparison
equal deleted inserted replaced
395:f8f0f1834266 396:6f3b20c1ac50
66 NGX_TCP_NOPUSH_SET 66 NGX_TCP_NOPUSH_SET
67 } ngx_connection_tcp_nopush_e; 67 } ngx_connection_tcp_nopush_e;
68 68
69 69
70 struct ngx_connection_s { 70 struct ngx_connection_s {
71 void *data; 71 void *data;
72 ngx_event_t *read; 72 ngx_event_t *read;
73 ngx_event_t *write; 73 ngx_event_t *write;
74 74
75 ngx_socket_t fd; 75 ngx_socket_t fd;
76 76
77 ngx_listening_t *listening; 77 ngx_recv_pt recv;
78 ngx_send_chain_pt send_chain;
78 79
79 off_t sent; 80 ngx_listening_t *listening;
80 81
81 void *ctx; 82 off_t sent;
82 void *servers; 83
84 void *ctx;
85 void *servers;
83 86
84 87
85 ngx_log_t *log; 88 ngx_log_t *log;
86 89
87 ngx_pool_t *pool; 90 ngx_pool_t *pool;
88 91
89 struct sockaddr *sockaddr; 92 struct sockaddr *sockaddr;
90 socklen_t socklen; 93 socklen_t socklen;
91 ngx_str_t addr_text; 94 ngx_str_t addr_text;
92 95
93 #if (NGX_OPENSSL) 96 #if (NGX_OPENSSL)
94 ngx_ssl_t *ssl; 97 ngx_ssl_t *ssl;
95 #endif 98 #endif
96 99
97 #if (HAVE_IOCP) 100 #if (HAVE_IOCP)
98 struct sockaddr *local_sockaddr; 101 struct sockaddr *local_sockaddr;
99 socklen_t local_socklen; 102 socklen_t local_socklen;
100 #endif 103 #endif
101 104
102 ngx_buf_t *buffer; 105 ngx_buf_t *buffer;
103 106
104 ngx_uint_t number; 107 ngx_uint_t number;
105 108
106 unsigned log_error:2; /* ngx_connection_log_error_e */ 109 unsigned log_error:2; /* ngx_connection_log_error_e */
107 110
108 unsigned single_connection:1; 111 unsigned single_connection:1;
109 unsigned pipeline:1; 112 unsigned pipeline:1;
110 unsigned unexpected_eof:1; 113 unsigned unexpected_eof:1;
111 unsigned timedout:1; 114 unsigned timedout:1;
112 signed tcp_nopush:2; 115 signed tcp_nopush:2;
113 #if (HAVE_IOCP) 116 #if (HAVE_IOCP)
114 unsigned accept_context_updated:1; 117 unsigned accept_context_updated:1;
115 #endif 118 #endif
116 119
117 #if (NGX_THREADS) 120 #if (NGX_THREADS)
118 ngx_atomic_t lock; 121 ngx_atomic_t lock;
119 #endif 122 #endif
120 }; 123 };
124
125
126 #ifndef ngx_ssl_set_nosendshut
127 #define ngx_ssl_set_nosendshut(ssl)
128 #endif
121 129
122 130
123 ngx_int_t ngx_set_inherited_sockets(ngx_cycle_t *cycle); 131 ngx_int_t ngx_set_inherited_sockets(ngx_cycle_t *cycle);
124 ngx_int_t ngx_open_listening_sockets(ngx_cycle_t *cycle); 132 ngx_int_t ngx_open_listening_sockets(ngx_cycle_t *cycle);
125 void ngx_close_listening_sockets(ngx_cycle_t *cycle); 133 void ngx_close_listening_sockets(ngx_cycle_t *cycle);