Mercurial > hg > nginx
comparison src/stream/ngx_stream.h @ 6175:8807a2369b1a
Stream: access module.
stream {
server {
...
allow 127.0.0.1;
deny all;
}
}
author | Vladimir Homutov <vl@nginx.com> |
---|---|
date | Thu, 04 Jun 2015 13:04:12 +0300 |
parents | 68c106e6fa0a |
children | 0dcef374b8bb |
comparison
equal
deleted
inserted
replaced
6174:68c106e6fa0a | 6175:8807a2369b1a |
---|---|
110 typedef struct { | 110 typedef struct { |
111 ngx_stream_listen_t opt; | 111 ngx_stream_listen_t opt; |
112 } ngx_stream_conf_addr_t; | 112 } ngx_stream_conf_addr_t; |
113 | 113 |
114 | 114 |
115 typedef ngx_int_t (*ngx_stream_access_pt)(ngx_stream_session_t *s); | |
116 | |
117 | |
115 typedef struct { | 118 typedef struct { |
116 ngx_array_t servers; /* ngx_stream_core_srv_conf_t */ | 119 ngx_array_t servers; /* ngx_stream_core_srv_conf_t */ |
117 ngx_array_t listen; /* ngx_stream_listen_t */ | 120 ngx_array_t listen; /* ngx_stream_listen_t */ |
121 ngx_stream_access_pt access_handler; | |
118 } ngx_stream_core_main_conf_t; | 122 } ngx_stream_core_main_conf_t; |
119 | 123 |
120 | 124 |
121 typedef void (*ngx_stream_handler_pt)(ngx_stream_session_t *s); | 125 typedef void (*ngx_stream_handler_pt)(ngx_stream_session_t *s); |
122 | 126 |