Mercurial > hg > nginx
diff 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 |
line wrap: on
line diff
--- a/src/stream/ngx_stream.h Tue Jun 09 13:00:45 2015 +0300 +++ b/src/stream/ngx_stream.h Thu Jun 04 13:04:12 2015 +0300 @@ -112,9 +112,13 @@ } ngx_stream_conf_addr_t; +typedef ngx_int_t (*ngx_stream_access_pt)(ngx_stream_session_t *s); + + typedef struct { ngx_array_t servers; /* ngx_stream_core_srv_conf_t */ ngx_array_t listen; /* ngx_stream_listen_t */ + ngx_stream_access_pt access_handler; } ngx_stream_core_main_conf_t;